正文

在ubuntu中安装radrails及rubygems2007-06-03 19:24:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/daweizhao/26372.html

分享到:

ubuntu中,安装文件一般是在终端下输入:sudo apt-get install 软件名 即可 已经在ubuntu下安装了ruby和rails,但是发现没有IDE,于是在网上找了一下,需要安装一个radrails:是按照如下的步骤来的,记之: The first step is of course to download and unpack your favorite Rails IDE: wget http://superb-east.dl.sourceforge.net/sourceforge/radrails/radrails-0.7.2-linux-gtk.tar.gz tar zxvf radrails-0.7.2-linux-gtk.tar.gz We'll do the right thing and install RadRails in /opt: sudo mv radrails /opt Then we'll make sure the permissions are set so that all users can experience RadRails goodness: cd /opt sudo chown -R root:root radrails sudo chmod -R +r radrails sudo chmod +x `sudo find radrails -type d` Next, it's time to create our RadRails start-up script. This will set ECLIPSE_HOME and actually launch RadRails. sudo nano /usr/bin/radrails You can replace Nano with your text editor of choice. Paste the following code into your script, and then save/exit: #!/bin/sh export ECLIPSE_HOME="/opt/radrails" $ECLIPSE_HOME/RadRails $* Now set the proper permissions on the startup script: sudo chmod 755 /usr/bin/radrails Congratulations, You've now got RadRails installed! Wouldn't it be nice if it appeared in your Gnome menu? Yeah, it would. sudo nano /usr/share/applications/radrails.desktop Once again, substitute nano with your chosen text editor. Paste the following into your new file, and then save and exit: [Desktop Entry] Encoding=UTF-8 Name=RadRails Comment=RadRails IDE Exec=radrails Icon=/opt/radrails/RadRails.xpm Terminal=false Type=Application Categories=GNOME;Application;Development; StartupNotify=true You're done! You should now see a pretty RadRails icon in the "Programming" menu of Gnome. If not, you screwed up somewhere! 但是问题是:没有成功地桌面上创建一个图标,原因是在/usr/share/pixmaps下没有找到radrails的图标,更奇怪的是从/opt/radrails下复制粘贴也不可 文章出处为:http://blog.sxia.net/article.asp?id=75

阅读(3479) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册