gcc - SCO
This is a discussion on gcc - SCO ; I have OSR507 with MP5. I need to compile on this box, so I downloaded
and installed gcc and gnu make from ftp2.caldera.com/skunkware.
So, I have
GNU make (ver 3.78.1)
Gcc - GNU Compiler Collection (ver 2.95.2)
installed, but when ...
-
gcc
I have OSR507 with MP5. I need to compile on this box, so I downloaded
and installed gcc and gnu make from ftp2.caldera.com/skunkware.
So, I have
GNU make (ver 3.78.1)
Gcc - GNU Compiler Collection (ver 2.95.2)
installed, but when I try to use it, it does not cooperate, please see
below:
# cat c.c
int f(){return(0);}
# gcc -c c.c
as: unrecognized option `-b'
# type as
as is /usr/gnu/bin/as
# as -v
GNU assembler version 2.12.1 (i586-pc-sco3.2v5.0) using BFD version
2.12.1
# echo $PATH
/bin:/etc:/usr/bin:/tcb/bin:/usr/local/bin:/usr/gnu/bin
Also, I noticed there is no header files I expeceted, such as stdio.h,
in /usr/include, in fact I did not find in anywhere under /usr
Does anybody know what else do I need to make it into a workable
system?
Any pointers will be appreciated.
Migurus
-
Re: gcc
On 22 May, 07:15, migurus wrote:
> I have OSR507 with MP5. I need to compile on this box, so I downloaded
> and installed gcc and gnu make from ftp2.caldera.com/skunkware.
>
> So, I have
>
> * GNU make (ver 3.78.1)
> * Gcc - GNU Compiler Collection (ver 2.95.2)
>
> installed, but when I try to use it, it does not cooperate, please see
> below:
>
> # cat c.c
> int f(){return(0);}
> # gcc -c c.c
> as: unrecognized option `-b'
> # type as
> as is /usr/gnu/bin/as
> # as -v
> GNU assembler version 2.12.1 (i586-pc-sco3.2v5.0) using BFD version
> 2.12.1
> # echo $PATH
> /bin:/etc:/usr/bin:/tcb/bin:/usr/local/bin:/usr/gnu/bin
>
> Also, I noticed there is no header files I expeceted, such as stdio.h,
> in /usr/include, in fact I did not find in anywhere under /usr
>
> Does anybody know what else do I need to make it into a workable
> system?
> Any pointers will be appreciated.
>
> Migurus
Your gcc is in 'gnutools', right? You need /usr/gnu/bin in your PATH.
gnutools is a big step up from most of the individual Skunkware
packages.
You also need to install the development tool kit, with the
development license, from your 5.0.7 installation media if it's
anything like 5.0.6 this way.
-
Re: gcc
On Wed, 21 May 2008, migurus wrote:
> I have OSR507 with MP5. I need to compile on this box, so I downloaded
> and installed gcc and gnu make from ftp2.caldera.com/skunkware.
>
> So, I have
>
> GNU make (ver 3.78.1)
> Gcc - GNU Compiler Collection (ver 2.95.2)
What is your PATH and LD_LIBRARY_PATH.
I have this in my .profile
[ -d /usr/local/bin -a -x /usr/local/bin ] && PATH=$PATH:/usr/local/bin
[ -d /usr/gnu/bin -a -x /usr/gnu/bin ] && PATH=$PATH:/usr/gnu/bin
PATH=$PATH:$HOME/bin:. # set command search path
export PATH
[ -d /usr/local/lib -a -x /usr/local/lib ] && LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
[ -d /usr/gnu/lib -a -x /usr/gnu/lib ] && LD_LIBRARY_PATH=/usr/gnu/lib:$LD_LIBRARY_PATH
[ -d /usr/X11R6/lib -a -x /usr/X11R6/lib ] && LD_LIBRARY_PATH=/usr/X11R6/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
With the above every thing works for me.
--
Boyd Gerber
ZENEZ 1042 East Fort Union #135, Midvale Utah 84047
-
Re: gcc
On 22 May, 16:03, Boyd Lynn Gerber wrote:
> On Wed, 21 May 2008, migurus wrote:
> > I have OSR507 with MP5. I need to compile on this box, so I downloaded
> > and installed gcc and gnu make from ftp2.caldera.com/skunkware.
>
> > So, I have
>
> > * GNU make (ver 3.78.1)
> > * Gcc - GNU Compiler Collection (ver 2.95.2)
>
> What is your PATH and LD_LIBRARY_PATH.
>
> I have this in my .profile
>
> [ -d /usr/local/bin -a -x /usr/local/bin ] && PATH=$PATH:/usr/local/bin
> [ -d /usr/gnu/bin -a -x /usr/gnu/bin ] && PATH=$PATH:/usr/gnu/bin
> PATH=$PATH:$HOME/bin:. * * * * * * * * *# set command search path
> export PATH
>
> [ -d /usr/local/lib -a -x /usr/local/lib ] && LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
> [ -d /usr/gnu/lib -a -x /usr/gnu/lib ] && LD_LIBRARY_PATH=/usr/gnu/lib:$LD_LIBRARY_PATH
> [ -d /usr/X11R6/lib -a -x /usr/X11R6/lib ] && LD_LIBRARY_PATH=/usr/X11R6/lib:$LD_LIBRARY_PATH
> export LD_LIBRARY_PATH
>
> With the above every thing works for me.
> --
> Boyd Gerber
> ZENEZ * 1042 East Fort Union #135, Midvale Utah *84047
Is it fine *Without* this? Most of the components compiled with
autoconf or other open source configuration tools have -L/usr/local/
lib in the compilation settings, so automatically look there.