LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   how to install gcc on solaris 10????? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-install-gcc-on-solaris-10-a-857228/)

ziadh 01-19-2011 04:13 AM

how to install gcc on solaris 10?????
 
Hello everyone!
this is a VMware im working on,
bash-3.00$ showrev
Hostname: co-NetworkTools-prod
Hostid: 85264af
Release: 5.10
Kernel architecture: i86pc
Application architecture: i386
Hardware provider:
Domain: **.*****.*******.com
Kernel version: SunOS 5.10 Generic_138889-03
bash-3.00$ uname -a
SunOS co-NetworkTools-prod 5.10 Generic_138889-03 i86pc i386 i86pc


i try to use ./configure command when i get the folowing,

checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


i know i need to get gcc, but i'm totaly newbie here, i i know that it is the following link
ftp://ftp.sunfreeware.com/pub/freewa...sparc-local.gz

but i dont know how i can save it on my machine... and then i want to run it on the system so i can use ./configure

THANK YOU FOR YOUR REPLIES!!!

ziadh 01-19-2011 04:53 AM

any help please??

onebuck 01-19-2011 07:20 AM

Moved: This thread is more suitable in Solaris and has been moved accordingly to help your thread/question get the exposure it deserves.

bathory 01-19-2011 07:44 AM

Hi,

In Solaris 10, gcc is installed in /usr/sfw/bin. Make sure to add that directory along with /usr/ccs/bin in your PATH.

Regards

ziadh 01-19-2011 07:45 AM

i found out the following

... spam removed ...

so now i have the file on my machine, but im encountering a new problem,


pkgmk gcc-3.4.6-sol10-sparc-local
pkgmk: ERROR: invalid package instance identifier <gcc-3.4.6-sol10-sparc-local>
## Packaging was not successful.

bash-3.00$ cd gcc-3.4.6-sol10-sparc-local
bash: cd: gcc-3.4.6-sol10-sparc-local: Not a directory

how can i install this GCC????
i'm really getting tired of UNIX :(

jlliagre 01-19-2011 08:11 AM

@ziadh: See bathory reply in post #4

ziadh 01-19-2011 08:20 AM

ok i found a file called gcc in /usr/sfw/bin

and then? i tried to cp gcc /usr/sfw/bin but i couldnt because cp: cannot create /usr/ccs/bin/gcc: Read-only file system

well, anyway it means i have gcc installed?? the why when i use ./configure i get errors
checking for gcc... no
checking for cc... no
checking for cl.exe... no

....
any ideas?

bathory 01-19-2011 08:32 AM

It's installed but not in your PATH, as I've already told you.
To add it, if you're using the bash shell, run
Code:

export PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin
and the try to run ./configure again

ziadh 01-19-2011 08:42 AM

Quote:

Originally Posted by bathory (Post 4230136)
It's installed but not in your PATH, as I've already told you.
To add it, if you're using the bash shell, run
Code:

export PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin
and the try to run ./configure again

ok easy on me :), im totaly newbie here,

the file i want to ./configure is in home/users/pezzillp
so what is the exact command i have to type?

thank you for helping

ziadh 01-19-2011 08:44 AM

bathory thank you!! it is configuring right now :) wow im so happy after a whole day! yeyyy
thank u again

ziadh 01-19-2011 08:47 AM

ok now i have to do the folowwing:
make
make install

but as always, i get errors!! i dont know why it's always like that

bash-3.00$ make
make: Fatal error in reader: Make.inc, line 84: Unexpected end of line seen

any suggestions?

jlliagre 01-19-2011 09:55 AM

Not without any clue about what you are trying to compile.

ziadh 01-20-2011 03:10 AM

Quote:

Originally Posted by jlliagre (Post 4230240)
Not without any clue about what you are trying to compile.

what i am trying to install here is freeradius server and here is the link to it if it helps
**ftp://ftp.freeradius.org/pub/freerad....1.10.tar.gz**

thank you

bathory 01-20-2011 03:52 AM

Hi,

Try to use gmake (gnu make) instead of make that comes with Solaris

ziadh 01-20-2011 05:08 AM

Quote:

Originally Posted by bathory (Post 4231249)
Hi,

Try to use gmake (gnu make) instead of make that comes with Solaris


gmake worked! but i get some weird error messages at the end
gmake[9]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules/rlm_eap/types/rlm_eap_ttls'
gmake[8]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules/rlm_eap/types'
gmake[7]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules/rlm_eap/types'
/home/radius/freeradius-server-2.1.10/libtool --mode=link gcc -o radeapclient radeapclient.lo libeap/libfreeradius-eap.la -lnsl -lresolv -lsocket -lposix4 -lpthread -lcrypto -lssl -lcrypto
libtool: link: cannot find the library `/home/raduis/freeradius-server-2.1.10/src/lib/libfreeradius-radius.la' or unhandled argument `/home/raduis/freeradius-server-2.1.10/src/lib/libfreeradius-radius.la'
gmake[6]: *** [radeapclient] Error 1
gmake[6]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules/rlm_eap'
gmake[5]: *** [rlm_eap] Error 2
gmake[5]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules'
gmake[3]: *** [modules] Error 2
gmake[3]: Leaving directory `/home/radius/freeradius-server-2.1.10/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/radius/freeradius-server-2.1.10/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/home/radius/freeradius-server-2.1.10'
gmake: *** [all] Error 2







then i have to do make install, so i made gmake install, it also worked but with some errors at the end:

libtool: install: warning: relinking `rlm_acctlog.la'
(cd /home/raduis/freeradius-server-2.1.10/src/modules/rlm_acctlog; /bin/bash /home/raduis/freeradius-server-2.1.10/libtool --mode=relink gcc -release 2.1.10 -module -export-dynamic -o rlm_acctlog.la -rpath /usr/local/lib rlm_acctlog.lo rlm_acctlog.c /home/raduis/freeradius-server-2.1.10/src/lib/libfreeradius-radius.la -lnsl -lresolv -lsocket -lposix4 -lpthread )
/home/radius/freeradius-server-2.1.10/libtool: line 6290: cd: /home/raduis/freeradius-server-2.1.10/src/modules/rlm_acctlog: No such file or directory
/bin/bash: /home/raduis/freeradius-server-2.1.10/libtool: No such file or directory
libtool: install: error: relink `rlm_acctlog.la' with the above command before installing it
gmake[6]: *** [install] Error 1
gmake[6]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules/rlm_acctlog'
gmake[5]: *** [rlm_acctlog] Error 2
gmake[5]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules'
gmake[4]: *** [install] Error 2
gmake[4]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules'
gmake[3]: *** [modules] Error 2
gmake[3]: Leaving directory `/home/radius/freeradius-server-2.1.10/src'
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/home/radius/freeradius-server-2.1.10/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/home/radius/freeradius-server-2.1.10'
gmake: *** [install] Error 2




usualy after doing this process i can run the server in debugg mode by typing
radiusd -X

unfortunately i get the following:


bash-3.00# radiusd -X
bash: radiusd: command not found


All times are GMT -5. The time now is 02:30 AM.