我是Linux新手,正在开发虚拟机。我正在尝试配置JMagick
安装,但是当我运行./configure
时,我收到一条错误消息,说它无法找到Java目录:'
./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for getconf... /usr/bin/getconf
checking whether large file support needs explicit enabling... no
checking for X... libraries , headers
configure: error: 'Unable to locate Java directories'
我知道configure
正在寻找java
,javac
,jar
和gcc
。当我在每个项目上输入whereis
时,我发现它们都位于我$PATH
的{{1}}中(我甚至将每个项目分别添加到路径中):
/usr/bin
从我能找到的内容来看,我认为我需要设置一个PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/bin/java:/usr/bin/javac:/usr/bin/jar:/usr/bin/gcc
whereis java javac jar gcc
java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz
javac: /usr/bin/javac /usr/share/man/man1/javac.1.gz
jar: /usr/bin/jar /usr/share/man/man1/jar.1.gz
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz
环境变量。所以我做了:
JAVA_HOME
尽管如此,我仍然遇到JAVA_HOME=/usr/bin/java
错误。正如我所说,我是Linux的新手,我很不知道该怎么做。关于我做错的任何想法?
如果完全相关,则VM上运行的各种技术的当前版本为:
Unable to locate Java directories
答案 0 :(得分:1)
function(e) { imgclick(somethingElse.id, e) }
yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel
tar zxvf Jmagick.xx.xx
dir cd
答案 1 :(得分:-1)
JMagick需要安装jdk1.6,试试这个:
yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel