Solved

gcc compiler

Posted on 2002-04-12
3
344 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.:

728 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