LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcj java compiler problem >> stuck with gnome install (https://www.linuxquestions.org/questions/linux-newbie-8/gcj-java-compiler-problem-stuck-with-gnome-install-483112/)

espo111 09-13-2006 09:49 AM

gcj java compiler problem >> stuck with gnome install
 
i need to recompile gcc with gjc java compiler. but i dont know how to do this.

I have a gentoo 2006.1 base system using the offical kernel 2.6.17.13

GCC 4.1.1

i tried using gentoo portage:

USE="gjc" emerge gcc and it compiled but i still have the problem.



i am trying to install gnome 2.16 using garnome (not portage) and i get stuck at
configure: error GJC version 3.0.0 or greater is required.


it also says to set the GJC_HOME variable if it is installed or add the top directory where GCJ binaries are to path. but im not even sure where to check for the binaries.

I use the command "which gjc" outputs: no gjc in (/usr/local/sbin:/usr/local/bin......)


any help with this would be great as there is little information on my problem.

thanks

timjowers 09-14-2006 10:58 AM

Bit sure I understand what you are doing but I'll insert some comments...

Quote:

Originally Posted by espo111
i need to recompile gcc with gjc java compiler. but i dont know how to do this.
I have a gentoo 2006.1 base system using the offical kernel 2.6.17.13
GCC 4.1.1
i tried using gentoo portage:
USE="gjc" emerge gcc and it compiled but i still have the problem.
i am trying to install gnome 2.16 using garnome (not portage) and i get stuck at
configure: error GJC version 3.0.0 or greater is required.
it also says to set the GJC_HOME variable if it is installed or add the top directory where GCJ binaries are to path. but im not even sure where to check for the binaries.
I use the command "which gjc" outputs: no gjc in (/usr/local/sbin:/usr/local/bin......)
any help with this would be great as there is little information on my problem.
thanks

My understanding is you need GCJ. I'm running CentOS and it is installed already. Do you have the gcj command on your system? I.e. you could run
find . -name gcj -print
from /
and see. Then maybe set GCJ_HOME as well as add a symbolic link in /usr/bin. Below is output how my system is setup.

Post back if this does not help.
TimJowers

[root@localhost etc]# gcj -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.5/specs
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.5/libgcj.spec
rename spec lib to liborig
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
[root@localhost etc]# whereis gcj
gcj: /usr/bin/gcj /usr/share/man/man1/gcj.1.gz
[root@localhost etc]#


All times are GMT -5. The time now is 10:05 PM.