I need Stata on my laptop and I'm new to Ubuntu. I have a folder with some taz files but I'm not sure what to do with them. I installed it given the instructions provided but it won't open, it gives me this error:
error while loading shared libraries: libgtksourceview-1.0.so.0: cannot open shared object file: No such file or directoryHere are the instructions that it came with
Before starting:
sudo apt-get install libgtksourceview-3.0-common
sudo ln -s /usr/lib/libgtksourceview-2.0.so.0 /usr/lib/libgtksourceview-1.0.so.0
sudo apt-get install libgnomeprint2.2-0- Unzip the file Stata12_Linux
Choose 32-bits or 64-bits
cd YOUR_PATH/Stata12_Linux/linux.32/or
cd YOUR_PATH/Stata12_Linux/linux.64/tar -xzvf docs.taz tar -xzvf base.taz tar -xzvf bins.taz tar -xzvf ado.taz sudo mkdir /usr/local/stata12 mv * /usr/local/stata12/ cd /usr/local/stata12/ sudo chmod -R 755 . sudo sh setrwxp now sudo ./stinit
Use the Serial Number, Code and Authorization given by SloveniaX
Congratulations!! Stata 12 is installed.
./xstata
2 Answers
Had the same problem with the same installation procedure. To be precise, Stata will run through command line (i.e. terminal) after this installation process, but thats pretty useless as one uses Stata only for the friendly GUI, right? For using the GUI, we need the packages libgnomeprint2.2-0 and libgtksourceview2.0-0, which are not supported by Ubuntu 16.04. Solved this by adding the old repositories of Ubuntu 12.04 (the last one to support those packages I believe) into Ubuntu 16.04 apt sources. Open terminal as administrator and:
sudo gedit /etc/apt/sources.listAdd this line to the sources.list file that opens up:
deb precise main universeSave and close. Update new sources in terminal:
sudo apt-get updateInstall the erstwhile unsupported packages using:
sudo apt-get install libgnomeprint2.2-0 libgtksourceview2.0-0This did it for me. Stata GUI up and running!
P.S. This solution is NOT BY ME. Read
P.P.S. Can anyone tell if this procedure has any side-effects? I mean adding old repositories to newer distributions?
2There's an easier way! You can just update to a newer build of Stata 12. To do so, open the non-graphical Stata by running ./stata, then update with update query, then update all.
The updated version doesn't depend on libgtksourceview or libgnomeprint.
Here's what it should look like:
. update query
(contacting )
Update status Last check for updates: 28 Feb 2018 New update available: 23 Jan 2014 Current update level: 24 Aug 2011
Comment
<Ad for Stata 15 here>
Possible actions Updates are available. Type -update all- to install.
. update all
(contacting )
downloading executable files ... complete
downloading documentation files ... complete
downloading ado files ... complete
installing executable files ... complete
installing documentation files ... complete
installing ado files ... complete
All files were sucessfully installed.
(!) Stata is about to shutdown this version of Stata and automatically launch the new version.As a side note, you don't have to do all the untarring either. You can just run ./install.