Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

gcc compiler

Posted on 2002-04-12
3
Medium Priority
?
348 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 400 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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 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…
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.
Suggested Courses

721 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