LINUX.ORG.RU

установка glassfish Gentoo

 ,


0

1

Взял 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 вижу впервые.

★★★★★
Ответ на: комментарий от geladil

свап то создал, а вот swapon на него сделать не получается, видимо какие то настройки прова.

splinter ★★★★★
() автор топика
Ответ на: комментарий от splinter

Если в репозитарии есть то можно. К примеру libreoffice-bin, firefox-bin. Если нет, то можно скомпилировать с опцией -b, бинарный пакет создастся и можно перенести на другой компьютер. Или можно подключить репозитарий калкулейта.

ymuv ★★★★
()
Ответ на: комментарий от splinter

Тогда попробуй убрать -pipe из CFLAGS в make.conf и собирать с emerge -j1. Так должно использоваться меньше памяти при сборке, но больше времени.

geladil
()
Ответ на: комментарий от geladil

[code]
root@vz24855:~# emerge dev-java/glassfish-servlet-api -j1

* IMPORTANT: 8 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.

Calculating dependencies... done!

Verifying ebuild manifests

Starting parallel fetch

Emerging (1 of 2) dev-java/ant-core-1.8.1

* apache-ant-1.8.1-src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* ant-1.8.1-gentoo.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* Package: dev-java/ant-core-1.8.1
* Repository: gentoo
* Maintainer: java@gentoo.org
* USE: elibc_glibc kernel_linux userland_GNU x86
* FEATURES: sandbox
* Using: icedtea-bin-6

Unpacking source...
Unpacking apache-ant-1.8.1-src.tar.bz2 to /var/tmp/portage/dev-java/ant-core-1.8.1/work
Unpacking ant-1.8.1-gentoo.tar.bz2 to /var/tmp/portage/dev-java/ant-core-1.8.1/work
Source unpacked in /var/tmp/portage/dev-java/ant-core-1.8.1/work
Preparing source in /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1 ...

* Applying various patches (bugfixes/updates) ...
* 1.8.1-prefix.patch ... [ ok ]
* Done with patching
* Adjusting to prefix /
* ant ... [ ok ]
Rewriting attributes
Rewriting build.xml

Source prepared.
Configuring source in /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1 ...

Rewriting attributes
Rewriting ./build.xml

Source configured.
Compiling source in /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1 ...

... Bootstrapping Ant Distribution
... Compiling Ant Classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
... 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
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at
....
bootstrap:

check_for_optional_packages:

prepare:
Created dir: /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build/lib
Copying 5 files to /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build/classes
Copying 2 files to /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build/classes

build-core:
Compiling 60 source files to /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build/classes

jars-prep:
Copying 2 files to /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build
Copying 1 file to /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build

jar-launcher:
Building jar: /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build/lib/ant-launcher.jar

jar-ant:
Building jar: /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build/lib/ant.jar

jar-bootstrap:
Building jar: /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/build/lib/ant-bootstrap.jar

jars-core:

dist-lite-internal:
Created dir: /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/bootstrap
Created dir: /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/bootstrap/bin
Created dir: /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/bootstrap/lib
Copying 2 files to /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/bootstrap/lib
Copying 13 files to /var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1/bootstrap/bin

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: 20 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'

Failed to emerge dev-java/ant-core-1.8.1, Log file:

'/var/tmp/portage/dev-java/ant-core-1.8.1/temp/build.log'

* Messages for package dev-java/ant-core-1.8.1:

* 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'.
* 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'

* IMPORTANT: 8 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
[/code]

По моему дженту на VZ это вообще бред.

splinter ★★★★★
() автор топика
Ответ на: комментарий от splinter

Собирать что-то в таком VE это мрак. Сделай stage4 и разверни из него бинхост. А потом уже спокойно вливай что хочешь в VE.

macumazan ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.