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 recently downloaded a binary of Blender, and upon running it on got the following error:

jdphenix@jdphenix:~/blender/blender_59865$ ./blender
./blender: error while loading shared libraries: libpng15.so.15: cannot open shared object file: No such file or directory

My first thought was to search for libpng using apt-cache, but no versions matched what Blender was looking for, so I downloaded the libpng v15 source from http://sourceforge.net/projects/libpng/files/libpng15/ and built it using the normal ./configure, make install type routine.

After this, I still got the same error, so I checked whereis:

jdphenix@jdphenix:~/blender/blender_59865$ whereis libpng15.so.15
libpng15.so: /usr/local/lib/libpng15.so /usr/local/lib/libpng15.so.15

It where I expected it to be. Checked http://wiki.blender.org/index.php/Doc:2.6/Manual/Introduction/Installing_Blender/DirectoryLayout and saw blender --help. No dice, because it requires libpng15.so.15 to even do that.

At this point, I feel that I might be missing something fundamental here. Is there something else I can break/unbreak/try to get this up and running?

share|improve this question
1  
Try to make symbolic link in /usr/lib: ln -s /usr/local/lib/libpng15.so /usr/lib. –  Danatela Sep 9 '13 at 5:29
    
@Danatela this did it, please make it an answer so I can vote and accept –  jdphenix Sep 9 '13 at 5:31

1 Answer 1

up vote 2 down vote accepted

OK, it seems that Blender seeks this library inside /usr/lib instead of /usr/local/lib. The answer is trivial: make there symbolic link:

sudo ln -s /usr/local/lib/libpng15.so /usr/lib

Else, you can change prefix while ./configure your libpng.so:

./configure --prefix=/usr

Thus make install will install libpng15.so direct into /usr/lib.

share|improve this answer
    
Something else ended up panning out quite nicely - I just installed the blender package from the official ppa (sudo apt-get install blender), it took care of the dependencies in one install step. I'm even able to compile without much work after that :) –  jdphenix Sep 17 '13 at 0:52

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.