LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2010, 11:53 AM   #1
Davethesnake
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Rep: Reputation: -14
Putting cc Compiler into $PATH


Im running Xandros,default system on a eeepc 701,seems a few versions of gcc are on it including the base gcc-3.3.I need to put cc compiler into $PATH,i can get into mc to change file but what exactly do i change?Currently is saysbashrc.profile)

set path so it includes users private bin if it exists
if [-d ~/bin ] ;then
PATH=~/bin:"${PATH}"
fi

------------What do i change and to what?-------------------
 
Old 10-31-2010, 12:09 PM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
Where is cc located?

Though if you know the answer to that you should know what you need to add to $PATH...

If you don't know the answer, then are you sure cc is actually installed?

In my experience cc is always in the same directory as gcc.
 
1 members found this post helpful.
Old 10-31-2010, 12:17 PM   #3
Davethesnake
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Original Poster
Rep: Reputation: -14
look im a bit baffeled:
if i do "whereis gcc"-------------i get /usr/lib/gcc
if i do apt-cache search gcc----i get:
libgcc 1---GCC support lib
gcc-4.1 base
gcc-3.4 base
cpp
gcc-3.3 base
gcj-4.1 base
cpp-4.1 base
libgcj 7-0
dpkg-dev

so now what?
 
Old 10-31-2010, 01:07 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Correct me if I'm wrong ...

"apt-cache search" searches ALL packages, not just installed ones?

What whereis found is just libs.

Try "apt-get install buildessential" (or is it buildessentials? I don't
use debian and friends)
 
Old 10-31-2010, 01:49 PM   #5
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
Oh hang on, it's that Asus customised Xandros install that they put on the EeePC isn't it. The one about which people tend to complain when they assume it's the sort of install you get if you had installed Xandros/openSuSE/Fedora or whatever from a DVD buy then find they can't do what they want to do because the Linux build that the EeePC ships with is designed on the assumption that you use what's on there, not that you will want to start compiling your own software on it. You might well not even have a build-essentials package available to install.

I forget to say before that in my experience not only is cc in the same directory as gcc but it's in the same package. So if gcc is installed so is cc. Also they're both in /usr/bin which is in $PATH by default. That may not be the case with Xandros though. Do you actually have gcc installed? What does
Code:
$ which gcc
say? If it doesn't say anything then you probably don't have gcc installed.


If I were you I'd put 'eeepc forum' in to Google and look for info on how to do what you're trying to do. That or replace the Linux install entirely with Aurora/Eeebuntu.
 
Old 10-31-2010, 02:39 PM   #6
Davethesnake
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Original Poster
Rep: Reputation: -14
yeah i guess i dont want wireless driver uncompatability with any of the other ubuntu derivitives,xandros does auto configure wireless connectivity also.
using sudo synaptic package manager says gcc3.3.base is installed but whenever i try to unpack ,it does untar ok but just wont ./configure anything coming back put cc compiler into $PATH.
bashrc.profile is the right file to change?is it?For to do this correctly?
 
Old 10-31-2010, 06:08 PM   #7
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by Davethesnake View Post
using sudo synaptic package manager says gcc3.3.base is installed but whenever i try to unpack ,it does untar ok but just wont ./configure
Erm... What are you unpacking and why are you trying to use ./configure on it?

Packages install pre-compiled binaries. That's sort of the point of them. E.g. you install the MozillaFirefox package and you have Firefox installed and ready to use, there's nothing to configure and build.


Perhaps it would help if you post the commands you are running and the output of them.


Quote:
Originally Posted by Davethesnake View Post
anything coming back put cc compiler into $PATH.
bashrc.profile is the right file to change?is it?For to do this correctly?
Yes, that's the place to set a value for $PATH.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Putting freshly compiled SQUID 2.6 STABLE 18 into my PATH penguindeb Linux - Newbie 2 01-26-2008 04:21 AM
no acceptable c compiler in $PATH ben44b Mandriva 10 10-16-2006 02:45 AM
C compiler is not in PATH Lycoming360 Linux - Software 1 12-04-2005 05:47 PM
question about putting pwd in $PATH nadroj Linux - Newbie 5 05-30-2005 05:34 PM
Path to C compiler? BajaNick Programming 2 09-24-2003 01:04 AM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration