繁体   English   中英

Perl内联:: java模块

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM