Saturday, February 2, 2008

Stata/Linux

I installed Stata10 in Linux Mint 4 which is based on Ubuntu Linux 7.10. It took me a while to figure this out. I installed the dynamically linked version thinking it would just work. It did not. I was missing one small line of code.

When I tried to start stata using the ./xstata command from the command line I received the error:
./xstata: error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory

The simple solution was to link the libtiff.so.3 file to libtiff.so.4. I had no idea to do this or why. These are files used in the appearance of the graphical user interface. The simple solution was to go to the directory /usr/lib which is where the files were. So I used the command cd /usr/lib and this took me to the correct directory.

I linked the two files using the command:
ln -s libtiff.so.4 libtiff.so.3

Now the command ./xstata brings up Stata with a graphical user interface (GUI) that is dynamically linked rather than statistically linked. And, yes, I have no idea what that means other than it should take up fewer resources. This only cost me a few hours of my life.

2 comments:

Anonymous said...

thanks, dude. solved my problem

Mark said...

Thank you! I had Stata 10 installed before, but then I had to reformat my computer and it wasn't working as nice. This is a simple fix but one I was lost on. Thanks for posting about it!