LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-12-2011, 10:05 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Rep: Reputation: 30
GCC for OpenSolaris


I need to install gcc-dev on Open Solaris 2009-06 x86 but I've found I can't just do a package install as the repo at pkg.opensolaris.org isn't active anymore and I can't find any pre-built packages for it.
http://cdc.sunfreepacks.com/repos/i386/GCC452.tar.bz2 is a dead link. Does anyone know where I can find a copy?
 
Old 10-13-2011, 02:19 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The Opensolaris repositories ( and other sites ) : Discontinued.

The Shillix clone has the "gcc-3.4.3-csl-20050525.i386.tar.bz2" here
ftp://ftp.uni-ulm.de/mirrors/schillix/
> ftp://ftp.uni-ulm.de/mirrors/schilli...5.i386.tar.bz2

'gcc-3.4.3-csl-20050525.i386' = SUNWgcc .


The successor "Open Indiana" has so far only the same "gcc-3.4.3".
http://openindiana.org/
..

Last edited by knudfl; 10-13-2011 at 05:19 AM.
 
Old 10-13-2011, 05:15 AM   #3
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
I've downloaded and untarred it, do I just need to put the resulting directory in /usr (and presumably set some environment variables)? The documentation included with it talks about compiling it?
 
Old 10-13-2011, 05:21 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
set some environment variables ?
Suggest : make softlinks from gcc , g++ to /usr/bin/ : gcc343 : g++343

..

Last edited by knudfl; 10-13-2011 at 05:26 AM.
 
Old 10-13-2011, 08:17 AM   #5
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
I've tried the following:
Code:
#/usr/bin/alias gcc=’/usr/bin/gcc-3.4.3/bin/gcc’
but when I type 'gcc' I get a command not found? Can you please spell out exactly what I need to do?
 
Old 10-13-2011, 08:50 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
cd usr/bin/
ln -s <path-to-gcc-3*>/gcc-3.4.3/bin/gcc gcc343
ln -s <path-to-gcc-3*>/gcc-3.4.3/bin/g++ g++343

Using : export CC=gcc343 CXX=g++343
 
Old 10-14-2011, 12:12 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Mark_667 View Post
I've tried the following:
Code:
#/usr/bin/alias gcc=’/usr/bin/gcc-3.4.3/bin/gcc’
but when I type 'gcc' I get a command not found?
alias does nothing when called with this /usr/bin path.
Code:
# alias gcc=...
is the way to use alias which is only meaningful as a shell builtin command.
 
Old 10-14-2011, 05:22 AM   #8
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
Thanks for the help, I finally did it by downloading:

ftp://ftp.sunfreeware.com/pub/freewa...0-x86-local.gz
ftp://ftp.sunfreeware.com/pub/freewa...0-x86-local.gz

and installing both with pkgadd -d after unzipping.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
versions of GCC in OpenSolaris OpenIndiana and Solaris 11 express Alexvader Solaris / OpenSolaris 3 03-04-2011 03:57 PM
LXer: OpenSolaris 2008.05 vs. OpenSolaris 2008.11 Benchmarks LXer Syndicated Linux News 0 12-06-2008 02:50 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration