Perl Inline :: java模块

时间:2014-07-04 04:50:15

标签: java perl

我正在尝试在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,请注意它。提前谢谢。

1 个答案:

答案 0 :(得分:0)

这帮助了我

http://www.cyberciti.biz/faq/centos-linux-6-install-java-sdk/

我可以运行示例java代码。感谢。