Solved

gcc compiler

Posted on 2002-04-12
3
339 Views
Last Modified: 2013-12-05
I'm trying to install gcc & g++ but I get an error when I try to ./configure saying that I don't have a compiler installed.  It tries to use cc, but it's not installed and I have no clue what compiler is installed.  The system is SCO Openserver.  I find it stupid that I can't install a compiler because I don't have a compiler.
0
Comment
Question by:darthg8r
  • 2
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 6937126
Well, to build a compiler (or anything else) from source you'd certainly have to already have a compiler installed. But there are other options, like installing a binary distribution of Gcc. Take a look at http://www.caldera.com/skunkware/#gcc for pre-built binaries.

BTW: you have two copies of thise question and shoul go to Community Support and ask to have one of them deleted.
0
 
LVL 1

Author Comment

by:darthg8r
ID: 6942763
Okay, I've got it installed, but it only runs from /usr/local.  I guess I need to link it.  Can someone tell me how to link it.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 6942858
You don't want to "link it". What you want to do is to add /usr/local/bin to your path.

If you are using bash, sh, or ksh you could do that interactively by:

PATH=/usr/local/bin:$PATH; export PATH

and for csh or tcsh do:

set path (/usr/local/bin $path)

To arrainge for the path to be set at login you'll need to modify your shell init scripts to include one of the above.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now