CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   gcc installation (http://www.cfd-online.com/Forums/openfoam-installation/105133-gcc-installation.html)

Argen July 23, 2012 18:41

gcc configure: error: cannot find neither zip nor jar, cannot continue
 
When I installed gcc-4.3.4, some errors happened as shown in the bottom. It seems that unzip couldn't be found. Once zip30 is installed, how to set the directory of zip30 before making gcc?

checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for gawk... (cached) gawk
checking for jar... no
checking for fastjar... no
checking for gjar... no
checking for zip... no
checking for unzip... /usr/bin/unzip
configure: error: cannot find neither zip nor jar, cannot continue
make[1]: *** [configure-target-libjava] Error 1
make[1]: Leaving directory `~/gcc-4.3.4'
make: *** [all] Error 2

wyldckat July 24, 2012 16:20

Quote:

Originally Posted by Argen (Post 373104)
When I installed gcc-4.3.4, some errors happened as shown in the bottom. It seems that unzip couldn't be found. Once zip30 is installed, how to set the directory of zip30 before making gcc?

Assuming you made a manual installation:
Code:

export PATH=$PATH:$HOME/zip30/bin

Argen July 25, 2012 01:20

Quote:

Originally Posted by wyldckat (Post 373313)
Assuming you made a manual installation:
Code:

export PATH=$PATH:$HOME/zip30/bin

It works. No errors reported after "make" and "make install". But, when "make check" is executed, errors occur as follows. How to sort it out?

make[1]: Entering directory `/nfs/rachel03/home01/mmy/software/gcc-4.3.4'
make[2]: Entering directory `/nfs/rachel03/home01/mmy/software/gcc-4.3.4/host-x86_64-unknown-linux-gnu/fixincludes'
autogen -T ../.././fixincludes/check.tpl ../.././fixincludes/inclhack.def
/bin/bash: autogen: command not found
make[2]: *** [check] Error 127
make[2]: Leaving directory `/nfs/rachel03/home01/mmy/software/gcc-4.3.4/host-x86_64-unknown-linux-gnu/fixincludes'
make[1]: *** [check-fixincludes] Error 2
make[1]: Leaving directory `/nfs/rachel03/home01/mmy/software/gcc-4.3.4'
make: *** [do-check] Error 2

wyldckat July 25, 2012 13:40

Hi Argen,

I never bother with "make check" :D
Either way, looks like you're missing the application "autogen"... probably installing the package on the system with the same name would work. Example, as root:
Code:

yum install autogen
edit: based on your your other answer on another thread, use this instead:
Code:

sudo apt-get install autogen
Best regards,
Bruno


All times are GMT -4. The time now is 03:36.