how to use gcc on solaris 8
|
Original Message
|
Name: dengxiaowen
Date: August 18, 2003 at 03:09:56 Pacific
Subject: how to use gcc on solaris 8 OS: Solaris 8 CPU/Ram: SPARC
|
Comment: I downloaded "gcc-2.95.3-sol8-sparc-local" to /usr/local. Then I did pkgadd -d gcc-2.95.3-sol8-sparc-local setenv PATH /usr/local/bin gcc -o test.o test.c I got error message --" gcc: installation problem, cannot exec `as': No such file or directory". Would you help tell me what is wrong? Thank you very much. I use Ultra 5 with Solaris 8.
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: David Perry
Date: August 18, 2003 at 05:03:04 Pacific
Subject: how to use gcc on solaris 8 |
Reply: (edit)You should have added /usr/local/bin to your existing PATH variable. setenv PATH $PATH:/usr/local/bin Try modifying your login profile then starting another login session.
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: dengxiaowen
Date: August 18, 2003 at 18:38:11 Pacific
Subject: how to use gcc on solaris 8
|
Reply: (edit)David, Thank you. I did: auto20# setenv PATH $PATH:/usr/local/bin But I got error message: "Variable syntax". Liu
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: David Perry
Date: August 20, 2003 at 05:03:20 Pacific
Subject: how to use gcc on solaris 8 |
Reply: (edit)I'm sorry. I never work with csh. I gave you the incorrect syntax for PATH. Try this set path=(/bin /usr/bin /usr/ucb /etc /usr/local/bin .) or set path = ($path /usr/local/bin) http://www.washington.edu/computing/unix/searchpath.html
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: dengxiaowen
Date: August 24, 2003 at 22:59:16 Pacific
Subject: how to use gcc on solaris 8
|
Reply: (edit)I tried "set path = ($path /usr/local/bin)" The problem still exists: " auto20# gcc -o test.o test.c gcc: installation problem, cannot exec `as': No such file or directory auto20# " Anyone can help? Thanks.
Report Offensive Follow Up For Removal
|
|
Response Number 5
|
Name: imkds
Date: September 8, 2003 at 19:28:46 Pacific
Subject: how to use gcc on solaris 8
|
Reply: (edit)as is the assembler, and the message indicates that it cannot be found. I don't have a Solaris box to refer to, but I'm thinking it is located in /usr/ucb. I believe it is in the SUNWsprot package, so make sure it is installed, and verify it is in your path.
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: