LINUX.ORG.RU

USE флаг версия java

 , , ,


0

1

Устанавливаю octave с поддержкой java (USE=«+java»). В системе установлена версия 1.8 но при установке хочет 1.7. Как видно из вывода, что можно использовать 1.8:

[ebuild  NSF  ] dev-java/oracle-jdk-bin-1.7.0.80 [1.8.0.74] USE="X alsa doc examples fontconfig nsplugin source (-aqua) -derby -jce -pax_kernel (-selinux)"
Как заставить portage ставить 1.8?


Что-то у тебя не так:

USE="$USE java" emerge -pv octave

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] virtual/fortran-0::gentoo  USE="openmp" 0 KiB
[ebuild  N     ] x11-libs/gl2ps-1.3.8::gentoo  USE="png zlib -doc" 290 KiB
[ebuild  N     ] media-libs/qhull-2012.1-r4::gentoo  USE="-doc -static-libs" 700 KiB
[ebuild  N     ] app-eselect/eselect-lapack-0.1::gentoo  0 KiB
[ebuild  N     ] app-eselect/eselect-blas-0.1::gentoo  0 KiB
[ebuild  N     ] sci-libs/amd-2.3.1::gentoo  USE="fortran -doc -static-libs" 333 KiB
[ebuild  N     ] sci-libs/camd-2.3.1::gentoo  USE="-doc -static-libs" 313 KiB
[ebuild  N     ] sci-libs/cxsparse-3.1.2::gentoo  USE="-static-libs" 1 958 KiB
[ebuild  N     ] x11-libs/fltk-1.3.3-r3:1::gentoo  USE="cairo opengl threads xft xinerama -debug -doc -examples -games -static-libs" 4 870 KiB
[ebuild  N     ] sci-libs/ccolamd-2.8.0::gentoo  USE="-static-libs" 303 KiB
[ebuild  N     ] sci-libs/blas-reference-20070226-r4::gentoo  USE="-doc" 5 208 KiB
[ebuild  N     ] media-gfx/graphicsmagick-1.3.23::gentoo  USE="X bzip2 cxx jpeg lcms modules openmp png svg tiff truetype zlib -debug -fpx -imagemagick -jbig -jpeg2k -lzma -perl -postscript -q16 -q32 -static-libs -threads -webp -wmf" 5 230 KiB
[ebuild  N     ] virtual/blas-1.0::gentoo  0 KiB
[ebuild  N     ] sci-libs/cholmod-2.1.2::gentoo  USE="-cuda -doc -lapack -metis -minimal -static-libs" 642 KiB
[ebuild  N     ] sci-mathematics/glpk-4.57:0/36::gentoo  USE="-doc -examples -gmp -mysql -odbc -static-libs" 3 695 KiB
[ebuild  N     ] sci-libs/umfpack-5.6.2::gentoo  USE="cholmod -doc -static-libs" 762 KiB
[ebuild  N     ] sci-libs/lapack-reference-3.2.1-r4::gentoo  USE="-doc" 4 694 KiB
[ebuild  N     ] virtual/lapack-3.1::gentoo  0 KiB
[ebuild  N     ] sci-libs/arpack-3.1.5::gentoo  USE="-doc -examples -mpi -static-libs" 1 481 KiB
[ebuild  N     ] sci-libs/qrupdate-1.1.2-r1::gentoo  USE="-static-libs" 49 KiB
[ebuild  N     ] sci-mathematics/octave-4.0.0:0/4.0.0::gentoo  USE="X glpk imagemagick java opengl qhull qrupdate readline sparse zlib -curl -doc -fftw -gnuplot -gui -hdf5 -jit -postscript -static-libs" 15 390 KiB

Total: 21 packages (21 new), Size of downloads: 45 911 KiB
gentoo ~ # eix -Ic java
[I] app-eselect/eselect-java (0.2.0{tbz2}@14.03.2016): A set of eselect modules for Java
[I] dev-java/java-config (2.2.0-r3(2){tbz2}@14.03.2016): Java environment configuration query tool
[I] sys-apps/baselayout-java (0.1.0{tbz2}@14.03.2016): Baselayout for Java
Найдено 3 совпадение.
gentoo ~ # eix -Ic jdk
[I] dev-java/oracle-jdk-bin (1.8.0.74(1.8){tbz2}@14.03.2016): Oracle's Java SE Development Kit
[I] virtual/jdk (1.8.0-r2(1.8){tbz2}@14.03.2016): Virtual for Java Development Kit (JDK)
Найдено 2 совпадение.

И да, то, что в квадратных скобках - не значит, что можно использовать, а значит, что уже установлено (в другой слот).

Nirvandil
()
Ответ на: комментарий от Nirvandil

Что можно сделать? Не хочу держать еще одну версию java

root@calculate ~                                                                                                                       [22:34:24] 
> # USE="$USE java" emerge -pv octave                                                                                                                        

Local copy of remote index is up-to-date and will be used.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary  N     ] dev-libs/kpathsea-6.2.0_p20140525:0/6.2.0::gentoo  USE="-doc -source -static-libs" 266 KiB
[binary  N     ] app-arch/lzlib-1.7::gentoo  USE="-static-libs" 70 KiB
[binary  N     ] app-arch/plzip-1.4::gentoo  61 KiB
[binary  N     ] app-text/teckit-2.5.1::gentoo  762 KiB
[binary  N     ] sys-apps/ed-1.10::gentoo  66 KiB
[binary  N     ] dev-tex/bibtexu-3.71_p20140525::gentoo  USE="-doc -source" 153 KiB
[binary  N     ] app-text/dvipsk-5.994_p20140525::gentoo  USE="-doc -source" 836 KiB
[binary  N     ] app-text/ps2pkm-1.5_p20140525::gentoo  114 KiB
[binary  N     ] x11-proto/printproto-1.0.5-r1::gentoo  ABI_X86="(64) -32 (-x32)" 54 KiB
[binary  N     ] x11-libs/libXp-1.0.3::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 122 KiB
[ebuild  NSF   ] dev-java/java-sdk-docs-1.7.0.80:1.7::gentoo [1.8.0.74:1.8::gentoo] 59736 KiB
[ebuild  NSF   ] dev-java/oracle-jdk-bin-1.7.0.80:1.7::gentoo [1.8.0.74:1.8::gentoo] USE="X alsa doc examples fontconfig nsplugin source (-aqua) -derby -jce -pax_kernel (-selinux)" 191047 KiB
[binary  N     ] virtual/jdk-1.7.0:1.7::gentoo  8 KiB
[binary  N     ] virtual/jre-1.7.0:1.7::gentoo  8 KiB
[ebuild  N     ] sci-visualization/gnuplot-5.0.1-r1::gentoo  USE="X cairo gd readline (-aqua) -bitmap -compat -doc -examples -ggi -latex -libcaca -libcerf -lua -qt4 (-svga) -wxwidgets" 4848 KiB
[binary  N     ] x11-libs/qscintilla-2.8.4-r1:0/11::gentoo  USE="-designer -doc" 1372 KiB
[binary  N     ] dev-libs/zziplib-0.13.60-r1::gentoo  USE="sdl -doc -static-libs {-test}" 173 KiB
[binary  N     ] app-text/texlive-core-2014-r4::gentoo  USE="X xetex -cjk -doc -source -tk" 8828 KiB
[binary  N     ] dev-texlive/texlive-basic-2014::gentoo  USE="-doc -source" 9601 KiB
[ebuild  N     ] dev-texlive/texlive-metapost-2014::gentoo  USE="-doc -source" 424 KiB
[binary  N     ] dev-texlive/texlive-genericrecommended-2014::gentoo  USE="-doc -source" 325 KiB
[binary  N     ] dev-texlive/texlive-fontutils-2014::gentoo  USE="-doc -source" 240 KiB
[binary  N     ] dev-texlive/texlive-latex-2014::gentoo  USE="-doc -source" 2712 KiB
[binary  N     ] dev-texlive/texlive-latexrecommended-2014::gentoo  USE="-doc -source" 1913 KiB
[binary  N     ] virtual/latex-base-1.0::gentoo  7 KiB
[ebuild   R   ~] sci-mathematics/octave-4.0.0:0/4.0.0::gentoo  USE="X doc* glpk gnuplot* gui* imagemagick java* jit* opengl qhull qrupdate readline sparse zlib -curl -fftw -hdf5 -postscript -static-libs" 0 KiB

Total: 26 packages (23 new, 2 in new slots, 1 reinstall, 21 binaries), Size of downloads: 283733 KiB
Fetch Restriction: 2 packages (2 unsatisfied)

Fetch instructions for dev-java/oracle-jdk-bin-1.7.0.80:
 * 
 * Oracle requires you to download the needed files manually after
 * accepting their license through a javascript capable web browser.
 * 
 * Download the following files:
 *   jdk-7u80-linux-x64.tar.gz
 *   javafx_samples-2_2_80-linux.zip
 *   jdk-7u80-linux-x64-demos.tar.gz
 * at 'http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html#jdk-7u80-oth-JPR'
 * and move them to '/var/calculate/remote/distfiles'
 * 
 * If the above mentioned urls do not point to the correct version anymore,
 * please download the files from Oracle's java download archive:
 * 
 *    http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u80-oth-JPR
 * 

Fetch instructions for dev-java/java-sdk-docs-1.7.0.80:
 * Please download jdk-7u80-docs-all.zip from 
 * http://www.oracle.com/technetwork/java/javase/documentation/java-se-7-doc-download-435117.html#jdk-7u80-apidocs-oth-JPR
 * (agree to the license) and place it in /var/calculate/remote/distfiles
 * If you find the file on the download page replaced with a higher
 * version, please report to the bug 67266 (link below).
 * If emerge fails because of a checksum error it is possible that
 * the upstream release changed without renaming. Try downloading the file
 * again (or a newer revision if available). Otherwise report this to
 * https://bugs.gentoo.org/67266 and we will make a new revision.

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

                                                                                                                                                              
root@calculate ~                                                                                                                       [22:35:32] 
> # eix -Ic java                                                                                                                                             
[I] app-eselect/eselect-java (0.1.0{tbz2}@13.08.2015): A set of eselect modules for Java
[I] dev-java/java-config (2.2.0(2){tbz2}@13.08.2015): Java environment configuration query tool
[I] dev-java/java-config-wrapper (0.16{tbz2}@13.08.2015): Wrapper for java-config
[I] dev-java/java-sdk-docs (1.8.0.74(1.8)@23.03.2016): Oracle's documentation bundle (including API) for Java SE
[I] sys-apps/baselayout-java (0.1.0{tbz2}@13.08.2015): Baselayout for Java
Найдено 5 совпадений.
                                                                                                                                                              
root@calculate ~                                                                                                                      [22:37:44] 
> # eix -Ic jdk                                                                                                                                              
[I] dev-java/oracle-jdk-bin (1.8.0.74(1.8)@23.03.2016): Oracle's Java SE Development Kit
gumbo
() автор топика
Ответ на: комментарий от gumbo

calculate

У меня просто Gentoo, ветка ~arch. У тебя, судя по версиям пакетов - кусок из arch, кусок из ~arch. И в итоге леший знает, что там, да ещё и с бинарными пакетами, в зависимостях. Попробуй порыться по ebuild'ам тех пакетов, которые тянутся - наверняка, наткнёшься там на DEPEND или RDEPEND от virtual/jdk:1.7

Nirvandil
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.