草庐IT

python - Conda安装的包,Python找不到

全部标签

ruby - 工头开始返回未找到的包

我最近从使用Ubuntu系统Ruby切换到使用RVM。当我运行foremanstart时,无论我的Procfile中的命令是什么,我都会收到一个未找到的错误。我当前的Procfile是:web:bundleexecunicorn-p$PORT-c./unicorn.rb所以错误是:/home/timmillwood/.rvm/gems/ruby-1.9.3-p327/gems/foreman-0.60.2/bin/foreman-runner:41:exec:bundle:notfound哪个工头返回/home/timmillwood/.rvm/gems/ruby-1.9.3-p327

ruby - 在 OSX 10.8.4 上使用无法识别的选项 '-arch' 安装 json-1.8.0 时 make 失败

我正在尝试正确设置我的ruby​​环境,但在尝试bundleinstall我的测试应用程序时不断收到错误。我在尝试bundleinstall时第一次遇到错误:$railsnewapp//[...]runbundleinstallFetchinggemmetadatafromhttps://rubygems.org/..Resolvingdependencies...Usingrake(10.1.0)Usingi18n(0.6.5)Usingmulti_json(1.7.9)Usingactivesupport(3.2.9)Usingbuilder(3.0.4)Usingactivemo

ruby-on-rails - 在 heroku 上通过 bundler 安装 linecache

我在Rails3.0应用程序上使用RVM并使用Ruby1.9.2。whichruby/home/ved/.rvm/rubies/ruby-1.9.2-p136/bin/ruby当我推送到heroku时,出现以下错误:Installinglinecache19(0.5.12)/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygemsinstaller.rb:164:in`install':linecache19requiresRubyversion>=1.9.2(Gem::InstallError)from/usr/ruby1.8.7/lib/ruby/

ruby - 无法安装单用户版本的 RVM

问题很简单:我无法安装RVM(单用户安装),就像我按照RVM网站上的说明一样,即:$curl-Lhttps://get.rvm.io|bash-sstable我在安装脚本文件的第360行(以echo开头的行)收到权限被拒绝的错误:#Performtheactualinstallation,firstweobtainthesourceusingwhichever#meanswasspecified,ifany.Defaultstohead.case"${version}"in(head)echo"${branch}">"$rvm_path/RELEASE"install_head${br

ruby - 通过 gem install mechanize 安装 gems 时显示错误 "invalid switch in RUBYOPT: -F (RuntimeError)"

我尝试通过以下命令在我的计算机上安装gem(Mechanize):>>geminstallmechanize--platform=ruby>>geminstallmechanize错误ERROR:Errorinstallingmechanize:ERROR:Failedtobuildgemnativeextension."C:/ProgramFiles/Ruby200-x64/bin/ruby.exe"extconf.rbC:/ProgramFiles/Ruby200-x64/bin/ruby.exe:invalidswitchinRUBYOPT:-F(RuntimeError)在我尝

ruby - RVM 系统范围的安装脚本 url 已损坏——什么是替换?

我的RVM系统级安装脚本损坏了,无论是LinodeStackScripts还是Chef-soloRecipes的形式。根据RVM网站上的说明,我的脚本以root身份执行以下命令以在系统范围内安装RVM:echo"InstallingRVMsystem-wide">>$logfilebash>/etc/profile上面的关键部分是urlhttp://bit.ly/rvm-install-system-wide。截至今天,2011年3月24日,此网址不再提供服务。它会导致GitHub404错误。RVM网站上的以下URL用于包含系统范围安装的说明:http://rvm.beginrescu

ruby - 安装 pry 后找不到命令

我在bash提示符下使用以下行安装了pry和相关的gem:geminstallpry-plus--no-ri--no-rdoc该命令报告了成功的gem安装。我发现的所有说明都说,在安装pry之后,我可以通过输入pry作为bash命令来获得pry提示。然而,实际结果是bash:pry:commandnotfoundwhichpry报告nopryin(...)其中省略号是$PATH。相比之下,whichrake报告/local/tbh/rbenv/shims/rake和whichgem报告/local/tbh/rbenv/垫片/gem为什么geminstall没有创建pry命令?我怎样才能

ruby-on-rails - 找不到有效的 gem : certificate verify failed

我正在尝试建立到远程服务器的ssh隧道,如下所述:SSHfromHerokuintoremoteserverwithMysqlDb但是我只是想下载gems就挂断了。我补充说:#file:Gemfile...gem'net-ssh-gateway','~>1.2.0'但是当我执行bundleinstall(或者甚至只是在命令行上执行geminstallnet-ssh)时,我得到:ERROR:Couldnotfindavalidgem'net-ssh'(>=0),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-SSL_conn

ruby-on-rails - 安装 ruby​​ ruby​​-1.9.3-p551 时出错

在安装ruby​​版本1.9.3-p551时出现以下错误。ruby-1.9.3-p551-#removingsrc/ruby-1.9.3-p551-pleasewaitSearchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:osx/10.10/x86_64/ruby-1.9.3-p551.Continuingwithcompilation.Pleaseread'rvmhelpmount'togetmoreinformationonbinaryrubies.Checkingrequirements

ruby - rbenv 和 passenger - 无法从非 root 用户帐户(sudo 组)安装

我只是想在Ubuntu12.04上设置我的第一个Rails服务器。我安装了rbenv(作为用户:deployer组sudo和admin)。现在尝试根据他们的文档安装乘客。我运行passenger-install-nginx-module它开始了,但是我得到了Pleasespecifyaprefixdirectory[/opt/nginx]:--------------------------------------------PermissionproblemsThisinstallermustbeabletowritetothefollowingdirectory:/opt/ngin