Взял VDS на gentoo необходимо поставить сервер сервлетов, делаю:
emerge --search glassfish
emerge dev-java/glassfish-servlet-api
... Copying Required Files
... Building Ant Distribution
Buildfile: /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build.xml
java.io.IOException: Cannot run program "/bin/env": java.io.IOException: error=12, Cannot allocate memory
BUILD FAILED
/var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build.xml:824: The following error occurred while executing this line:
/var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build.xml:741: Execute failed: java.io.IOException: Cannot run program "chmod": java.io.IOException: error=12, Cannot allocate memory
Total time: 14 seconds
... Failed Building Ant Distribution !
Bootstrap FAILED
* ERROR: dev-java/ant-core-1.8.1 failed (compile phase):
* build failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 3881: Called die
* The specific snippet of code:
* CLASSPATH="$(java-config -t)" ./build.sh ${bsyscp} jars-core internal_dist $(use_doc javadocs) || die "build failed"
*
* If you need support, post the output of 'emerge --info =dev-java/ant-core-1.8.1',
* the complete build log and the output of 'emerge -pqv =dev-java/ant-core-1.8.1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-6 CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-6.1.11.1"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
* The complete build log is located at '/var/tmp/portage/dev-java/ant-core-1.8.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-core-1.8.1/temp/environment'.
* S: '/var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1'
Gentoo вижу впервые.