Computing.Net > Forums > Solaris > how to use gcc on solaris 8

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how to use gcc on solaris 8

Reply to Message Icon

Name: dengxiaowen
Date: August 18, 2003 at 03:09:56 Pacific
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.



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: August 18, 2003 at 05:03:04 Pacific
Reply:

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.


0

Response Number 2
Name: dengxiaowen
Date: August 18, 2003 at 18:38:11 Pacific
Reply:

David, Thank you.

I did:
auto20# setenv PATH $PATH:/usr/local/bin

But I got error message: "Variable syntax".

Liu


0

Response Number 3
Name: David Perry
Date: August 20, 2003 at 05:03:20 Pacific
Reply:

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


0

Response Number 4
Name: dengxiaowen
Date: August 24, 2003 at 22:59:16 Pacific
Reply:

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.


0

Response Number 5
Name: imkds
Date: September 8, 2003 at 19:28:46 Pacific
Reply:

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.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: how to use gcc on solaris 8

GCC on Solaris 8 running on sunBlade100 www.computing.net/answers/solaris/gcc-on-solaris-8-running-on-sunblade100/1384.html

installing gcc on solaris 8 www.computing.net/answers/solaris/installing-gcc-on-solaris-8/3650.html

How to install gunzip on SOLARIS 8 www.computing.net/answers/solaris/how-to-install-gunzip-on-solaris-8/707.html