全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件
6865 8
2007-09-01
Install STATA 10 under Linux (Take Ubuntu 7.04 for Example)

  1. To start, copy the file “install” and the folder “unix” from Installation CD into “/home/yourname/stata10install”.

  2. Change current directory into “/home/yourname/stata10install” by typing the following commands into console: cd /home/yourname/stata10install

  3. Make the “install” file executable: chmod 755 install

  4. Create destination folder for Stata 10 installation: sudo mkdir /usr/local/stata10

  5. Change current directory into “/usr/local/stata10” by typing in the console: cd /usr/local/stata10

  6. Now you are in the designation folder, execute the installation script by typing the following commands: /home/yourname/stata10install/install

  7. Follow the instructions of STATA install program, be careful, when you are asked to specify which STATA for PC Linux you wish to install, choose Stata for PC Linux, statically linked

  8. Now make links so everyone can run STATA

cd /usr/local/bin

sudo ln -s /usr/local/stata10/stata-se stata

sudo ln -s /usr/local/stata10/xstata-se xstata

That's all, enjoy. :-) If you have any questions, do not hesitate to ask.

PS: You can increase the visibility of your STATA interface by downloading This Consloe Font from http://www.ank.com.ar/fonts/.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2007-9-1 16:54:00
有时间试试……
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-5-2 16:25:40
给力啊,楼主。
当初一直是按照stata官网的要求一步一步做的,把文件拷贝至/usr/local/stata10下进行安装,但老是出现安装脚本的错误。想换成安装到其他目录吧,仍然是老问题。

提示:安装的时候尽量将按照楼主的说法,将stata 的安装目录与安装源文件放在不同的文件夹里。。。。从而避
            免script error。。。。。。。。。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-5-2 16:52:21
完成以上操作后你可以在命令中进行操作。。要想获取图像界面,还需要其他操作。

完整安装步骤。。

For those like myself who have recently switched to the Linux operating system, installing programs that are not in the Ubuntu repositories can be a challenge at times. I recently installed the statistical analysis program Stata on my computer running the latest stable version of Linux Mint Gloria, which is a fork of the popular Ubuntu Linux distribution. But, more about my choice of Linux distro later. On to installing Stata on linux.

sudo mkdir /usr/local/stata10


cd /usr/local/stata10


sh /media/cdrom/install






Next, follow the prompts to install the program. The Stata install CD includes versions for several operating system so just pay attention. If you want to run the GUI version(图形界面) of Stata just like on windows then you’ll want to select the dynamically linked version in step three of the install.
After the files have been copied run the license install program by typing:(注册stata)
sudo ./stinit

stata 注册号

Serial Number : 198089190                              
Code : z9bc4xqdt7n1es0ab3ny9fmuz17s               
Authorization Key: 87yg                              

或者     
Serial Number : 198081327                           
Code : w6gnsqpi3k1ixcnz1whu7foy49jm                 
Authorization Key: 54vd  


如果安装是出现错误,可能需要更改下权限,或者将安装的源文件与安装目录分开。
1.安装目录更改权限操作
If there is an error you may need to change the permissions on the stata10 folder before starting the license program. Try typing:

sudo chmod -R 755 /usr/local/stata10






如何安装图形界面。。

Enter the serial number, code, and authorization key and you’ll be prompted to enter some info that will appear when Stata starts. I chose to enter my name on the first line and my job title on the second. Now you should be able to run Stata from the command line by typing:

./stata






or you can run the GUI version of Stata by typing:

./xstata






At first try I was able to run Stata from the command line but when I tried to run xstata I got the following error:

./xstata: error while loading shared libraries: libtiff.so.3: cannot openshared object file: No such file or directory






After consulting a document on the Stata website, I was still confused about what to do but after further search I was able to run xstata by running the following commands. If you are running a recent version of Ubuntu such as 9.04 – 10.04 the following should work:

sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3






After upgrading to the latest version of Ubuntu, Maverick Meerkat (10.10), a new version of libtiff is included so the following softlink should be used instead of the line above.

sudo ln -s /usr/lib/libtiff.so.4.3.3 /usr/lib/libtiff.so.3






Mostly, this post serves as a reminder to myself how to re-install if I have to but if you find this useful, leave me a comment below. Good luck!


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-5-2 17:27:52
stata成功安装界面.png
我已经成功安装了图形界面。。。。
也很欢迎为大家解答。。我的邮箱:  goola.2011@gmail.com
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-5-2 19:30:18
可惜我是winxp系统啊
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群