Solved

gnu software installations

Posted on 2000-02-28
3
265 Views
Last Modified: 2010-04-21
I have installed Solaris2.7 .
I want to start installing gcc and stuff but it seems like I have the problem of the egg and the hen. to compile things I need gcc and for that I need to compile gcc... (and same problem with make).
What do you do in that situation?
10x.
0
Comment
Question by:mandybird44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Expert Comment

by:samri
ID: 2567234
mandybird,

         Perhaps you could try the precompiled version of Gcc.  
try browsing to http://www.sunfreeware.com you can download the version that you need.  The files are in Solaris package format and compressed with gzip (you need to download the gzip too - which is not compressed).

       Donwload to the local dir in the server and do a pkgadd -d ./<package name> to install.

In addition to the compiler itself (gcc), you need the header files in order for you to compile programs.  Some header file are already bundled with the Solaris distributions.  Depending on your type of installtion, you may or may not have installed the package.  You might need the following packages (in addition to gcc).   I'm really not sure what header files, that you might need.  The way I did is, to install solaris using full OEM support (quite big - but contains everything).

Some packages that you might need (I think).

SUNWhea                    SunOS Header Files
SUNWlibC                    Sun Workshop Compilers Bundled libC

In order for you to successfully compile any program, some program might require addition header/include files.  Check against your distribution, and install the packages accordingly.


Good luck,

Samri
0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 2567297
Personally, I don't particularly care to use "pre-built" binaries, but in this case you have to, at least to get started. Here's how I did it.

First make sure that you've installed the bundled compiler tools, headers and libraries. They'll be there if you chose the "Developers option" when installing the OS. Otherwise you can add those packages from swmtool. This will put stuff like make, ar, as, yacc, etc in /usr/ccs/bin... Add it to your path.

Next get one of the gcc binary distributions and install it (also get gzip from the sameplace). Some go into /usr/local (like normal), but the last one I had to use went into /opt/gcc or some other odd place. Adjust your path accordingly.

Now get the sources so you can build a real installtion. For a good gcc installation I recommend building and installing, in order, gzip, bison, flex, make, and then gcc. You can then remove the pre-built gcc if it didn't install into /usr/local.

You may already know, but the cannonical source for the gnu sources is www.gnu.org and one of the best places to get binaries is www.sunfreeware.com.
0
 

Author Comment

by:mandybird44
ID: 2572842
you all gave good answers. what I needed is actualy to know about the sun site with the pre compiled software.
10x
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unix Command -- Challenging  question 7 101
How to check the PVU´s on AIX TSM servers? 3 119
Shell Script on AIX 7 145
awk sed 8 103
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question