帮助在Ubuntu 16.04上安装Stata

我需要在我的笔记本电脑上使用Stata,而且我是Ubuntu的新手。 我有一个包含一些taz文件的文件夹,但我不知道如何处理它们。 我根据提供的说明安装了它但它不会打开,它给了我这个错误:

error while loading shared libraries: libgtksourceview-1.0.so.0: cannot open shared object file: No such file or directory 

以下是它附带的说明

在开始之前:

 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 
  1. 解压缩文件Stata12_Linux
  2. 选择32位或64位

     cd YOUR_PATH/Stata12_Linux/linux.32/ 

    要么

     cd YOUR_PATH/Stata12_Linux/linux.64/ 
  3.  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 

使用SloveniaX提供的序列号,代码和授权

恭喜! Stata 12已安装。
./xstata

在相同的安装过程中遇到同样的问题。 确切地说,Stata将在此安装过程之后运行命令行(即终端),但这对于使用Stata仅用于友好的GUI非常没用,对吧? 对于使用GUI,我们需要包libgnomeprint2.2-0libgtksourceview2.0-0 ,Ubuntu 16.04不支持这些包。 解决了这个问题,将Ubuntu 12.04的旧存储库(最后一个支持我相信的软件包)添加到Ubuntu 16.04 apt源代码中。 以管理员身份打开终端并:

 sudo gedit /etc/apt/sources.list 

将此行添加到打开的sources.list文件中:

 deb http://cz.archive.ubuntu.com/ubuntu precise main universe 

保存并关闭。 更新终端中的新来源:

 sudo apt-get update 

使用以下方法安装以前不支持的软件包:

 sudo apt-get install libgnomeprint2.2-0 libgtksourceview2.0-0 

这样做对我来说。 Stata GUI启动并运行!

PS这个解决方案不是我的解决方案。 阅读http://people.duke.edu/~aql3/install-stata12-ubuntu1404/

PPS任何人都可以判断这个程序是否有任何副作用? 我的意思是将旧存储库添加到较新的发行版中?

有一个更简单的方法! 您可以更新到Stata 12的较新版本。为此,通过运行./stata打开非图形Stata,然后使用update query进行update query ,然后update all

更新版本不依赖于libgtksourceview或libgnomeprint。

这是它应该是什么样子:

 . update query (contacting http://www.stata.com) Update status Last check for updates: 28 Feb 2018 New update available: 23 Jan 2014 Current update level: 24 Aug 2011 Comment  Possible actions Updates are available. Type -update all- to install. . update all (contacting http://www.stata.com) 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. 

作为旁注,你也不必做所有的解决。 你可以运行./install