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.

While installing a software wink, I got stdc++ and lib expat packages not found.

prayag@prayag:~/wink$ ./installer.sh 

Wink requires that the following packages be installed to run properly. Please install them and try again.

libstdc++.so.5 libexpat.so.0

Then I tried installing above packages via apt-get, but am getting

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



 prayag@prayag:~/wink$ sudo apt-get install libexpat.so.0 
 Reading package lists... Done 
 Building dependency tree  
 Reading state information... Done 
 E: Unable to locate package libexpat.so.0 
 E: Couldn't find any package by regex 'libexpat.so.0'

How can I get them in 32-bit ubuntu and make the wink installation move on.

Update : As suggested by @Salem, I did

prayag@prayag:~/wink$ sudo apt-get install apt-file
prayag@prayag:~/wink$ apt-file update

## libstdc++
prayag@prayag:~/wink$ apt-file search libstdc++.so.5
libstdc++5: /usr/lib/i386-linux-gnu/libstdc++.so.5
libstdc++5: /usr/lib/i386-linux-gnu/libstdc++.so.5.0.7

prayag@prayag:~/wink$ sudo apt-get install libstdc++5

Similarly I installed libexpat1 and libexpat1-dev.

prayag@prayag:~/wink$ apt-file search libexpat.so
lib64expat1: /usr/lib64/libexpat.so.1
lib64expat1: /usr/lib64/libexpat.so.1.5.2
lib64expat1-dev: /usr/lib64/libexpat.so
libexpat1: /lib/i386-linux-gnu/libexpat.so.1
libexpat1: /lib/i386-linux-gnu/libexpat.so.1.5.2
libexpat1-dev: /usr/lib/i386-linux-gnu/libexpat.so

prayag@prayag:~/wink$ sudo apt-get install libexpat1
prayag@prayag:~/wink$ sudo apt-get install libexpat1-dev

Still wink installer telling me :

prayag@prayag:~/wink$ ./installer.sh 

Wink requires that the following packages be installed to run properly. Please install them and try again.

libexpat.so.0
share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

The Wink error is not very clear, because those are files it needs and not packages you need to install.

Whenever you get some error like "I can't find randomfile.so" you can use apt-file to search for a package that provides it. If you dont have it already you can install it using sudo apt-get install apt-file.

Note

As I am using a 64-bit system, you should get different results from mine. So where I get x86_64-linux-gnu you should get i386-linux-gnu, and you should replace it in each of the commands bellow

In your case I get the following:

$ apt-file search libstdc++.so.5
libstdc++5: /usr/lib/x86_64-linux-gnu/libstdc++.so.5
libstdc++5: /usr/lib/x86_64-linux-gnu/libstdc++.so.5.0.7

So you need to install libstdc++5 package to get that file.

Regarding the second one, there is no exact match on my system:

$ apt-file search libexpat.so
libexpat1: /lib/x86_64-linux-gnu/libexpat.so.1
libexpat1: /lib/x86_64-linux-gnu/libexpat.so.1.5.2
libexpat1-dev: /usr/lib/x86_64-linux-gnu/libexpat.so

So you can try to install libexpat1 and libexpat1-dev and see if Wink accepts it. If not you can try to create a symlink to that file (in a 32-bit system change the path as described above).

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libexpat.so /usr/lib/x86_64-linux-gnu/libexpat.so.0

Please note that this can not work at all or make Wink not work as expected, because you will be using a different version of the library it requires. In the case it does not work you should remove the created symlink:

$ sudo rm /usr/lib/x86_64-linux-gnu/libexpat.so.0
share|improve this answer
    
Hi @Salem, have a look to my updates after following your instructions. Installation of libexpat1 and libexpat1-dev is not accepted by wink yet. –  Prayag Upd Aug 21 '13 at 14:42
    
For the last part of your instructions, I fired $ sudo ln -s /usr/lib64/libexpat.so /usr/lib64/libexpat.so.0. I get ln: failed to create symbolic link '/usr/lib64/libexpat.so.0': No such file or directory –  Prayag Upd Aug 21 '13 at 14:46
    
The correct command should be sudo ln -s /usr/lib/i386-linux-gnu/libexpat.so /usr/lib/i386-linux-gnu/libexpat.so.0. –  Salem Aug 21 '13 at 15:23
    
Great that works. Am removing the link now sudo rm /usr/lib/i386-linux-gnu/libexpat.so.0. –  Prayag Upd Aug 21 '13 at 15:49
add comment

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.