Solved

gcc compiler

Posted on 2002-04-12
3
345 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
[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
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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 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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

617 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