LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-22-2003, 09:37 PM   #1
spooodini
LQ Newbie
 
Registered: Sep 2003
Location: Idaho
Posts: 11

Rep: Reputation: 0
Fix a path problem


I tried to install C++ compiler on to Madrake 9.1 using rpm, but the system can't find the c compiler. I think the path is wrong. How do I go about fixing the path or figuring out where the compiler is?
Help!
 
Old 10-22-2003, 11:38 PM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
i have no much idea on mandrake and i use redhat
but since rpm is the same in both i suppose i can help


1. find out where the c compiler is installed. This can be done by using rpm

say ur package is xxx.i386mdk.rpm
then issue command

rpm -q -l xxx

this will give u all the files which belong to that rpm. Find out where is the cc or gcc is installed

after this say it is (mostly will be installed in /usr/bin )
installed in /opt/bin, edit a file gcc.sh in /etc/profile.d

and type the path there

PATH=$PATH:/opt/bin

this will get sourced when a login shell starts -
and if things go right then u will be able to get hold of
gcc in that path !


u can also do a verify if there are some files which are
missing in the installation using


rpm -q -V xxx
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 09:02 AM
where do I start to fix the problem? mandrakemikael Linux - General 1 12-26-2004 02:31 PM
Sound problem fix nextekcarl Linux - General 1 10-04-2004 08:33 AM
Simple boot problem...but I can't fix it jamaas Linux - Newbie 24 04-29-2004 09:59 PM
How do i fix my colour problem in Mandrake? nick Linux - General 0 06-14-2001 08:11 PM


All times are GMT -5. The time now is 02:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration