LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 11-03-2004, 05:12 AM   #1
tygernoot
LQ Newbie
 
Registered: May 2004
Posts: 10

Rep: Reputation: 0
gcc libstdc++ problem


Hi,

I just installed the latest gcc compiler (3.4.2). Compiling is no problem, but every time I try to run the program itself I get the following error:
./taak1: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
I did a bit of research which resulted in the following solution:
LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH

This helps, but only in the console I'm working in at that very moment. Whenever I open a new console I have to go through that procedure again. So after some more searching I found that I had to edit the /etc/ld.so.conf file and add the line /usr/local/lib to it. Alrighty, I did that, but no success .

Is there a way to fix this so I won't have to type those lines every time I open a new console? Pretty annoying since I have to program quite a lot in linux.

Thanks a lot,
Edward.
 
Old 11-03-2004, 05:43 PM   #2
tygernoot
LQ Newbie
 
Registered: May 2004
Posts: 10

Original Poster
Rep: Reputation: 0
I found the solution. I just copied the libstdc++.so.6 and libgcc_s.so.1 file to the /lib directory and now it works fine .
 
  


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
libstdc++.so version skew upgrading gcc Greg Buchholz Slackware 4 11-30-2005 02:18 AM
fluxbox-0.9.13 problem with gcc and libstdc++ StewieG Linux - Software 1 08-22-2005 04:04 PM
gcc-pass 2...libstdc++-v3...GCC_NO_EXECUTABLE!! tagigogo Linux From Scratch 7 05-15-2005 12:19 PM
gcc, g++ libstdc ? WHAT!?! Trying to install scribus irbaileyus Linux - Software 7 02-18-2005 05:09 PM
What?!:gcc = 3.3.2 conflicts with libstdc++-3.3.2-2 dsledge Linux - Software 1 09-28-2004 07:24 AM


All times are GMT -5. The time now is 05:14 AM.

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