LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 04: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, 04: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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:27 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