Helpful Information
 
 
Category: UNIX Help
gcc and GNU make

OS: Solaris 8

Trying to install PHP and MySQL

I am told that I need the following tools installed on my system.

Perl (preferably the newest version)
gzip or gunzip
gcc and GNU make

I know that Perl is installed and I know that gunzip is installed.

Now how do I find out if I have gcc and GNU make installed??

If I don't, what are the steps I need to take to get them installed?

GCC (http://gcc.gnu.org/)
GNU (http://www.gnu.org/) I use Linux, which is a variant of GNU, so I'm not sure how to check to see if you have it. Good luck! :)

Type "gcc", see if it works ;)

And "make --version" to see if you have GNU make (if the "make" you have isn't GNU make, try "gmake"):



[ddipaolo@quinn ~]% make --version
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
[ddipaolo@quinn ~]%

gcc: not found
make: not found
gmake: not found

I'll have to download them.

What is the esiest way to download and install these programs?

Can anyone help me? Please.

Originally posted by Dirt_Diga
What is the esiest way to download and install these programs?

Can anyone help me? Please.
Um, look a few posts up.

GCC (http://gcc.gnu.org/)
GNU (http://www.gnu.org/)

This is my first time doing anything like this...configuring and building a GNU software. I'd really appreciate if someone could help me out with this.

After downloading the file 'gcc-3.2.2.tar.gz', these are the steps I have completed so far:
[list=1]
gunzip gcc-3.2.2.tar.gz
tar xvf gcc-3.2.2.tar
cd gcc-3.2.2.
[/list=1]

Now I am reading the configuration instructions http://gcc.gnu.org/install/configure.html but I am just not getting it.


This document describes the recommended configuration procedure for both native and cross targets.
What is meant by native and cross targets?


We use srcdir to refer to the toplevel source directory for GCC; we use objdir to refer to the toplevel build/object directory.
What do they mean by toplevel source directory and toplevel build/object directory?


If you obtained the sources via CVS, srcdir must refer to the top gcc directory, the one where the MAINTAINERS can be found, and not its gcc subdirectory, otherwise the build will fail.
What is CVS?

http://www.cvshome.org/
whenever you find a term you don't understand/havent heard of, just try searching google for it, and most times, you'll get what you're looking for near the top ;)

Originally posted by Dirt_Diga
What is the esiest way to download and install these programs?

Can anyone help me? Please.


Visit this site, U will find GCC installable for Solaris.

http://www.ibiblio.org/pub/packages/solaris/sparc/

Just download & install this package. No need to compile and build the GCC compiler.

Cheers
Karthik










privacy (GDPR)