niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » SGI/IRIX » admin
Please help installing GCC on IRIX 6.5
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
scottjwoodford
*nix forums beginner


Joined: 24 May 2005
Posts: 19

PostPosted: Thu Jul 07, 2005 5:32 pm    Post subject: Please help installing GCC on IRIX 6.5 Reply with quote

I have:

1 - Downloaded gcc-2.95.2 from SGI's freeware site, and burned it on a
cdrom

2 - Ran inst and selected the extracted gcc folder as install path,
then typed go

3 - Inst installs the package fine, and requistarts the ELF files -
everything looks good

I try to run make (on software that requires gcc) and it fails. It's
check shows that gcc was not found. Also, I try to run gmake and it
just says command not found. What else am I missing? I've tried
adding gcc in the PATH variable too, but that doesn't seem to help.
Any help would be greatly appreciated. Thanks in advance,

Scott
Back to top
Joerg Behrens
*nix forums Guru Wannabe


Joined: 29 Apr 2005
Posts: 106

PostPosted: Thu Jul 07, 2005 6:03 pm    Post subject: Re: Please help installing GCC on IRIX 6.5 Reply with quote

David Cantrell schrieb:
Quote:
On 2005-07-07, scottjwoodford <scottjwoodford@gmail.com> wrote:

I try to run make (on software that requires gcc) and it fails. It's
check shows that gcc was not found. Also, I try to run gmake and it
just says command not found. What else am I missing? I've tried
adding gcc in the PATH variable too, but that doesn't seem to help.
Any help would be greatly appreciated. Thanks in advance,


All of the SGI freeware installs to /usr/freeware, so make sure you have
/usr/freeware/bin in your PATH.

It's usually easiest to set the CC and/or CXX variables to your
preferred compiler when building software. Most (but not all)
developers will honor those environment variables in their Makefiles.
Software that uses the autognu configuration system use CC and CXX:

CC=/usr/freeware/bin/gcc ; export CC

Or in some sort of C shell:

setenv CC /usr/freeware/bin/gcc

C shell people correct me if I'm wrong.

If none of this works, you will probably want to look at the Makefile(s)
for whatever you are building and force it to use gcc.



And after this dont forget to install the IDF which gives 'as', 'ld' and
also the missing header and tool which are needed to compile anything.
When i remember corretly there is already a gcc 3.3 on freeware.sgi.com
so why do you use a old one?


regards
Joerg
Back to top
scottjwoodford
*nix forums beginner


Joined: 24 May 2005
Posts: 19

PostPosted: Thu Jul 07, 2005 7:15 pm    Post subject: Re: Please help installing GCC on IRIX 6.5 Reply with quote

Refresh my memory, how do I add those to my PATH again?

Also, I didn't see gcc 3.3 on freeware.sgi.com. All I see is 2.95.2.
And I've already installed the entire "Development Foundation" cd. Is
that the same thing as IDF? It clearly says "IRIX 6.5 Development
Foundation" on the cd.

Thanks so much for your help guys. This is very frustrating.
Back to top
David Cantrell
*nix forums beginner


Joined: 28 Apr 2005
Posts: 8

PostPosted: Thu Jul 07, 2005 7:43 pm    Post subject: Re: Please help installing GCC on IRIX 6.5 Reply with quote

On 2005-07-07, scottjwoodford <scottjwoodford@gmail.com> wrote:
Quote:
I try to run make (on software that requires gcc) and it fails. It's
check shows that gcc was not found. Also, I try to run gmake and it
just says command not found. What else am I missing? I've tried
adding gcc in the PATH variable too, but that doesn't seem to help.
Any help would be greatly appreciated. Thanks in advance,

All of the SGI freeware installs to /usr/freeware, so make sure you have
/usr/freeware/bin in your PATH.

It's usually easiest to set the CC and/or CXX variables to your
preferred compiler when building software. Most (but not all)
developers will honor those environment variables in their Makefiles.
Software that uses the autognu configuration system use CC and CXX:

CC=/usr/freeware/bin/gcc ; export CC

Or in some sort of C shell:

setenv CC /usr/freeware/bin/gcc

C shell people correct me if I'm wrong.

If none of this works, you will probably want to look at the Makefile(s)
for whatever you are building and force it to use gcc.

--
David Cantrell (david@burdell.org)
Back to top
Toni Grass
*nix forums addict


Joined: 03 May 2005
Posts: 82

PostPosted: Thu Jul 07, 2005 8:05 pm    Post subject: Re: Please help installing GCC on IRIX 6.5 Reply with quote

scottjwoodford wrote:
Quote:
Refresh my memory, how do I add those to my PATH again?

Hm, you should read the release notes on from freeware (index.html)
which tells:
'Changing Your Search Path
By default the search path used by your system will not include the
/usr/freeware directories. We have provided a tool called fixpath which
can be used to modify the files in your local environment controlling
these paths. To use the tool open a shell window and type
/usr/freeware/bin/fixpath.'

I do not remember if this only works for (t)csh or also for bash (you may
write a line like this into ~/.bashrc and ~/.profile
PATH=/usr/freeware/bin:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11
and for man pages
MANPATH=/usr/freeware/catman:/usr/freeware/man:....)

Quote:
Also, I didn't see gcc 3.3 on freeware.sgi.com. All I see is 2.95.2.
And I've already installed the entire "Development Foundation" cd. Is
that the same thing as IDF? It clearly says "IRIX 6.5 Development
Foundation" on the cd.

toni@obiwan:~ > gcc --version
gcc (GCC) 3.3
[....]

This is gcc installed from freeware (May 2004), I also successfully
compiled tin which works as you can see ;-)

btw: gcc is on CD-2, it would be also worth to have a look into
'gcc.html'

Quote:
Thanks so much for your help guys. This is very frustrating.

HTH

Toni
Back to top
Joerg Behrens
*nix forums Guru Wannabe


Joined: 29 Apr 2005
Posts: 106

PostPosted: Fri Jul 08, 2005 8:56 am    Post subject: Re: Please help installing GCC on IRIX 6.5 Reply with quote

scottjwoodford schrieb:
Quote:
Refresh my memory, how do I add those to my PATH again?

easiest way is to run the usr/freeware/bin/fixpath script. During
runtime you can set variables in this way.

#bash style
export PATH=$PATH:/usr/freeware/bin


#tcsh style
setenv PATH "$PATH:/usr/freeware/bin" ???

Quote:
Also, I didn't see gcc 3.3 on freeware.sgi.com. All I see is 2.95.2.

Please *clean* your glasses than Wink
http://freeware.sgi.com/index-by-alpha.html#gcc

Quote:
And I've already installed the entire "Development Foundation" cd. Is
that the same thing as IDF? It clearly says "IRIX 6.5 Development
Foundation" on the cd.

Thanks so much for your help guys. This is very frustrating.


regards
Joerg
Back to top
scottjwoodford
*nix forums beginner


Joined: 24 May 2005
Posts: 19

PostPosted: Fri Jul 08, 2005 7:48 pm    Post subject: Re: Please help installing GCC on IRIX 6.5 Reply with quote

First of all, thanks so much for the help.

I didn't see gcc 3.3, because the freeware site I was looking on didn't
have it. It was not the 6.5 sgi freeware site - it was the "6.2 and
upwards" site.

http://freeware.sgi.com/fw-6.2/index-by-alpha.html#gcc

That was my mistake. Anyway, I sucessfully got gcc installed, but it's
not working properly. It's complaining about how the C compiler cannot
create executables (crt1.o error). From looking at SGI's gcc page for
this dist, the error means that dev.sw.lib is not installed on my
system. That is odd, because I have installed the entire "Development
Libraries" and "Development Foundation" cd's. I did notice however,
that in fact, crt1.o was not present on my system. When I try to
install that dev.sw by itself, I get "error: product /CDROM/dist/dev.sw
is bad". In fact, I get that same error if I try to load any other
distribution one by one off that cd. I can load the entire dist
directory as a distribution, but not a single package (such as dev.sw)

Any ideas on that?

Thanks again,

Scott
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 11:57 pm | All times are GMT
navigation Forum index » *nix » SGI/IRIX » admin
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Need help getting Sony DAT tape drive to work on Irix 6.5 trebor SGI/IRIX 1 Sun Apr 13, 2008 3:19 am
No new posts Installing things Shane Debian 4 Fri Jul 21, 2006 6:00 am
No new posts installing solaris 10 on a v880 bl8n8r Solaris 3 Wed Jul 19, 2006 6:18 pm
No new posts installing depots in single-user mode Zak. HP-UX 2 Wed Jul 19, 2006 4:06 pm
No new posts Installing Solaris 8 - which CDs BertieBigBollox@gmail.com Solaris 3 Wed Jul 19, 2006 1:52 pm

McDonalds | MPAA | Credit Cards | Credit Reports | McDonalds
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1826s ][ Queries: 16 (0.0865s) ][ GZIP on - Debug on ]