Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wrastled with the program according to the info in this question. Now it is installed but I can't figure out how to run it. A friend running the same version of Ubuntu had no problems getting it to start after installing it the same way.

This is what I've done:

$ ./Psychonauts
./Psychonauts: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

So I went ahead and:

$ sudo apt-get install libstdc++.so.6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'

It should be noted that I only started using Linux a few days ago.

UPDATE

Okay, so I did manage to install apt-file and apt-file update.

However then we hit another snag.

usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6
[sudo] password for usagiyojimbo: 
E: The cache is empty. You need to run 'apt-file update' first.

I have done that, when I do it says:

File is up-to-date.
Ignoring source without Contents File:
a link they won't let me post

Or

File is up-to-date.
Downloading Index a link
No Index available.
Downloading complete file a link

I am still getting the same error when I try to run Psychonauts.

share|improve this question
1  
sudo apt-get install libstdc++6 –  3ventic Jan 23 at 21:16
    
possible duplicate of "Unable to locate package" for all packages –  BuZZ-dEE Jan 24 at 13:43

3 Answers 3

You are almost there, just used a few more characters than you needed:

sudo apt-get install libstdc++6

... should do the trick.

share|improve this answer

You get the error message:

E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'

because you tried to install a file libstdc++.so.6 that you can't install, because it is located in a debian package.

You can use apt-file to search for the package that contains that file. To install it, type:

sudo apt-get install apt-file

Then you have to update the index.

sudo apt-file update

After that, you can search for the package which contains the file libstdc++.so.6:

sudo apt-file find libstdc++.so.6

Then you find a lot packages that contains the searched file. In your case, the correct package is libstdc++6:

libstdc++6: /usr/lib/x86_64-linux-gnu/libstdc++.so.6

Then you can install the needed package:

sudo apt-get install libstdc++6
share|improve this answer
    
Okay, so I did manage to install apt-file and apt-file update. However then we hit another snag. usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6 [sudo] password for usagiyojimbo: E: The cache is empty. You need to run 'apt-file update' first. –  user239112 Feb 5 at 21:22
    
Run sudo apt-file update and after that sudo apt-file find libstdc++.so.6. Read above answer exactly. –  BuZZ-dEE Feb 5 at 21:44
    
Not sure what I did differently, but it apt-file find worked this time. I get the list of packages. When I try to install it says libstdc++6 is already the newest version. When I try to ./Psychonauts it still says no such file or directory. –  user239112 Feb 5 at 22:01

I think Psychonauts is a 32bit application. You will need to install:

apt-get install lib32stdc++6
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.