LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-15-2007, 12:12 PM   #1
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu
Posts: 308

Rep: Reputation: 31
editing the Env. Var. PATH


I am trying to compile and install an updated kde3 program.
It exits and balks that it can't find a 'c' compiler in the PATH.


This is the Err. Msg. from the shell:
checking where to install... /opt/kde3 (as returned by kde-config)
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

*****************
Following is my PATH Env. entry.

PATH=/home/mathay/bin:/usr/local/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/sbin:/bi
n:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:

**********************
whereis gcc
gcc: /usr/lib/gcc


My question is, how to modify the ENV entry and what modification to make?

Thank you in advance for your help.
 
Old 10-15-2007, 12:19 PM   #2
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Code:
export PATH=$PATH:/path/to/add
This would add to your path for the session - but I don't think you have gcc installed
gcc binary should be in /usr/bin/ - that's in your path

Last edited by The_JinJ; 10-15-2007 at 12:30 PM.
 
Old 10-15-2007, 03:55 PM   #3
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu
Posts: 308

Original Poster
Rep: Reputation: 31
Thanks, JinJ
Unix has a humbling effect on me. I am constantly reminded of how silly I can make myself look.
However, I installed gcc and resolved a few more dependencies but still have a problem.
*********
these are a few lines from the config.log
contrary to the last line, I did locate and install the package mentioned.
********
configure:3717: checking whether we are using the GNU C compiler
configure:3746: gcc -c conftest.c >&5
configure:3752: $? = 0
configure:3769: result: yes
configure:3774: checking whether gcc accepts -g
configure:3804: gcc -c -g conftest.c >&5
configure:3810: $? = 0
configure:3909: result: yes
configure:3926: checking for gcc option to accept ISO C89
configure:4000: gcc -c conftest.c >&5
configure:4006: $? = 0
configure:4029: result: none needed
configure:4049: checking dependency style of gcc
configure:4139: result: gcc3
configure:4162: checking how to run the C preprocessor
configure:4202: gcc -E conftest.c
configure:4208: $? = 0
configure:4239: gcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:4245: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "digikam-0.9.3-beta1"
| #define VERSION "3.5.8"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>

*******************************

configure:22953: error: Your Installation isn't able to compile simple C++ programs.
Check config.log for details - if you're using a Linux distribution you might miss
a package named similar to libstdc++-dev.
*********
Any ideas?
 
Old 10-17-2007, 11:03 AM   #4
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu
Posts: 308

Original Poster
Rep: Reputation: 31
The err msg : " if you're using a Linux distribution you might miss
a package named similar to libstdc++-dev." persists, even after I did the following:

linux-lqc2:/usr/lib # export PATH=$PATH:/usr/lib/libstdc++
followed by a search:
********************
linux-lqc2:/usr/lib # ls | less | grep c++
***************
yielding:

libstdc++-3-libc6.1-2-2.10.0.so
libstdc++-3-libc6.2-2-2.10.0.so
libstdc++-libc6.1-1.so.2
libstdc++-libc6.1-2.so.3
libstdc++-libc6.2-2.so.3
libstdc++.so.2.7.2
libstdc++.so.2.7.2.8
libstdc++.so.2.8
libstdc++.so.2.8.0
libstdc++.so.2.9
libstdc++.so.2.9.0
libstdc++.so.5
libstdc++.so.5.0.7
libstdc++.so.6
libstdc++.so.6.0.8
linux-lqc2:/usr/lib #

This is a beta release...is there possibly a bug or omission in the dependencies listing?

Matthew
 
Old 10-19-2007, 08:39 AM   #5
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu
Posts: 308

Original Poster
Rep: Reputation: 31
After visiting the home site of "digikam-0.9.3-beta1" and reading Forum notes, comments etc.. I found nothing helpful. However, I did read that another major upgrade is underway to accommodate Kde_4 which is shortly due for release. I've decided therefore that my time can be more profitably spent elsewhere and I will wait until the release of Kde_4.
 
  


Reply



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
What GNOME env var do I have to set to find this *.so? cracauer Linux - Desktop 0 01-01-2007 07:21 PM
path/env var avail in KDE after logon? hyllplan Debian 5 05-11-2005 07:50 AM
bash shell env var script ejbest Linux - Newbie 4 09-29-2004 10:23 AM
tcsh script: how to see if an env var is defined? BrianK Programming 1 06-07-2004 10:12 PM
help - what env var for dynamic lib path? emanresu Linux - Newbie 3 05-31-2004 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:05 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
Open Source Consulting | Domain Registration