![](/img/trans.png)
[英]Attempting to inline Java into Perl via the Inline::Java module
[英]Perl Inline::java module
我正在嘗試在cpan中安裝Inline :: Java模塊,但收到以下錯誤。 請有人幫忙。 謝謝。
Welcome to the Inline::Java installation procedure.
A Java 2 SDK is required to install and use Inline::Java. Please
specify your Java 2 SDK installation directory using the J2SDK
option to Makefile.PL as such:
perl Makefile.PL J2SDK=/path/to/your/j2sdk/installation
You can set the JAVA_HOME environment variable to specify your
Java 2 SDK installation directory. For example, if you are using
the CPAN installer you can do:
JAVA_HOME=/path/to/your/j2sdk/installation cpan Inline::Java
Warning: No success on command[/usr/bin/perl Makefile.PL]
'YAML' not installed, will not store persistent state
PATL/Inline-Java-0.53.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
PATL/Inline-Java-0.53.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 256
我從來沒有使用過Java。 請對此進行一些說明,以更好地理解Java。 先感謝您。
這幫助了我
http://www.cyberciti.biz/faq/centos-linux-6-install-java-sdk/
而且我能夠運行示例Java代碼。 謝謝。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.