Solved

gcc compiler

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

Independent Software Vendors: 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

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

749 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