skullmunky
31-10-2007 03:56:53
[Edit:Andy] It is possible that the suggestions here are not ideal as it's best to keep the Python-Ogre libraries in their own, easy to manage location -- please see the following post
[/Edit]
If you don't want to have to set your LD_LIBRARY_PATH all the time, here's how to install the libraries from the binary package distribution of python-ogre nicely. This worked for me, but someone who knows this all works ought to just check it for dangerous errors ...
A common system-wide place to store libraries (the stuff in PythonOgre/lib) is in /usr/local/lib. you can copy the libraries in there like this:
Actually, for some reason, Ubuntu (and maybe Debian in general?) doesn't know to look in /usr/local/lib. Suse, Fedora, others distributions use it automatically, but in Ubuntu you have to set that up yourself. Here's how:
the directory /etc/ld.so.conf.d contains configuration files for the Dynamic Linker, the program that looks for libraries for you.
Create a file in that directory called "local.conf"
put in the line
and save it.
then:
In the version of Python-Ogre I downloaded, I also had to copy the python packages into the system python directory:
[/Edit]
If you don't want to have to set your LD_LIBRARY_PATH all the time, here's how to install the libraries from the binary package distribution of python-ogre nicely. This worked for me, but someone who knows this all works ought to just check it for dangerous errors ...

A common system-wide place to store libraries (the stuff in PythonOgre/lib) is in /usr/local/lib. you can copy the libraries in there like this:
cd ~
cd PythonOgre
cd lib
sudo cp -r * /usr/local/lib
sudo ldconfig
Actually, for some reason, Ubuntu (and maybe Debian in general?) doesn't know to look in /usr/local/lib. Suse, Fedora, others distributions use it automatically, but in Ubuntu you have to set that up yourself. Here's how:
the directory /etc/ld.so.conf.d contains configuration files for the Dynamic Linker, the program that looks for libraries for you.
Create a file in that directory called "local.conf"
sudo gedit /etc/ld.so.conf.d/local.conf
put in the line
/usr/local/lib
and save it.
then:
sudo ldconfig
In the version of Python-Ogre I downloaded, I also had to copy the python packages into the system python directory:
cd ~
cd PythonOgre
cd packages_2.5
sudo cp -r * /usr/lib/python2.5/site-packages