“ruby脚本/插件”是一个命令吗?

时间:2022-04-19 01:11:49

I was following an online tutorial to create an Ruby on Rails application on App Engine.

我正在学习在App Engine上创建Ruby on Rails应用程序的在线教程。

There is one command which other people can run, but it didn't run on my Ubuntu 10.10:

有一个命令是其他人可以运行的,但是它没有在我的Ubuntu 10.10上运行:

ruby script/plugin install http://svn.avdi.org/nulldb/trunk/

When I try to run it, it complains: ruby1.8: No such file or directory script/plugin (LoadError)

当我尝试运行它时,它会报错:ruby1.8:没有这样的文件或目录脚本/插件(LoadError)

What is wrong with my computer?

我的电脑怎么了?

ruby  -v  ==> 1.8.7
rails -v  ==> 2.3.10  
gem   -v  ==> 1.3.7

5 个解决方案

#1


2  

Have you tried just plain old script/plugin install http://svn.avdi.org/nulldb/trunk/ ? Also are you sure that you're in the correct directory?(the rails project main directory) And are you sure that you have the file script/plugin?

您是否尝试过简单的旧脚本/插件安装http://svn.avdi.org/nulldb/trunk/ ?您确定您在正确的目录中吗?(rails项目主目录)你确定你有文件脚本/插件吗?

#2


21  

if using rails3, cd into your rails app root dir then use

如果使用rails3, cd进入您的rails应用程序root dir,然后使用

rails plugin install http://url/of/your/package

#3


9  

If you are using Rails 3, you no longer have a script/plugin directory.

如果您正在使用Rails 3,您将不再拥有一个脚本/插件目录。

Rails 3 now runs commands through the "rails" script.

Rails 3现在通过“Rails”脚本运行命令。

You can find your version of rails with rails -v

您可以使用rails -v找到您的rails版本

#4


3  

I had similar problem with rfacebook on rails 3 solution that worked for me:

我对rfacebook在rails 3上的解决方案也有类似的问题:

cd \MyAppName\app

rails plugin install svn://rubyforge.org/var/svn/rfacebook/trunk/rfacebook/plugins/rfacebook

#5


2  

First of all make sure that you are running that command from the root of your rails app.

首先,确保您正在从rails应用程序的根运行该命令。

#1


2  

Have you tried just plain old script/plugin install http://svn.avdi.org/nulldb/trunk/ ? Also are you sure that you're in the correct directory?(the rails project main directory) And are you sure that you have the file script/plugin?

您是否尝试过简单的旧脚本/插件安装http://svn.avdi.org/nulldb/trunk/ ?您确定您在正确的目录中吗?(rails项目主目录)你确定你有文件脚本/插件吗?

#2


21  

if using rails3, cd into your rails app root dir then use

如果使用rails3, cd进入您的rails应用程序root dir,然后使用

rails plugin install http://url/of/your/package

#3


9  

If you are using Rails 3, you no longer have a script/plugin directory.

如果您正在使用Rails 3,您将不再拥有一个脚本/插件目录。

Rails 3 now runs commands through the "rails" script.

Rails 3现在通过“Rails”脚本运行命令。

You can find your version of rails with rails -v

您可以使用rails -v找到您的rails版本

#4


3  

I had similar problem with rfacebook on rails 3 solution that worked for me:

我对rfacebook在rails 3上的解决方案也有类似的问题:

cd \MyAppName\app

rails plugin install svn://rubyforge.org/var/svn/rfacebook/trunk/rfacebook/plugins/rfacebook

#5


2  

First of all make sure that you are running that command from the root of your rails app.

首先,确保您正在从rails应用程序的根运行该命令。