Tag: rvm

如何在mac osx上安装libksba?

根据rvm的要求,“对于Ruby 1.9.3:安装libksba#如果使用Homebrew,’brew install libksba’” 我是全新的,不熟悉终端命令。 如何在不使用自制程序的情况下安装libksba? 请帮忙!!!

使用RVM Mac OS X安装Ruby 1.9.2时出现问题

我为自己的无知道歉 – 我对此很新 – 但我已经尝试了一切,并且无法使用RVM安装1.9.2。 我相信我已经正确安装了RVM,当我去安装1.9.2时,当ruby尝试编译时,我的make日志中出现以下错误: ld: in /usr/local/lib/libz.1.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64) for architecture x86_64 collect2: ld returned 1 exit status make[1]: *** [../../../.ext/x86_64-darwin10.6.0/digest/md5.bundle] Error 1 make: *** [mkmain.sh] Error 1 其他一些信息:我在32位运行OS X,并收到类似的错误 – 用我相信(i36)替换(x86_64)。 我现在以64位运行。 *更新*: 我已经完成了TinMan要求我做的所有事情,但仍无济于事 – 只想指出我可以安装1.8.7就好了。 尝试安装1.9.1和1.9.2给出了以下错误消息: `Installing Ruby […]

如何判断RVM安装的ruby实际上正在使用哪个openssl lib

我发现我可以使用以下任何命令成功安装ruby: $ rvm reinstall 1.9.3-p327 $ rvm reinstall 1.9.3-p327 –with-openssl-dir=/usr/local $ rvm reinstall 1.9.3-p327 –with-openssl-dir=/afdlkjasd_not_a_dir $ rvm reinstall 1.9.3-p327 –with-openssl-dirffadsf=/afdlkjasd_not_a_dir 无论我使用哪种上述命令,我都可以输入: $ rvm use 1.9.3-p327 Using /home/clay/rvm/gems/ruby-1.9.3-p327 $ which ruby /home/clay/.rvm/rubies/ruby-1.9.3-p327/bin/ruby $ ruby -e “puts require(‘openssl’)” true 无论我做什么,我似乎都有ssl支持。 我猜rvm或者ruby构建过程并不介意无效的选项或值。 我不知道–with-openssl-dir选项是否得到尊重,即使我正确地输入它(显然)。 rvm是否将我的ruby链接到我想要的openssl lib(/ usr / local中的那个)? 如何判断哪个openssl lib编译/链接了ruby? 我正在使用Linux Mint 13。

使用RVM安装ruby-2.X时遇到麻烦

我最近遇到了ruby-2.0.0-p0安装。 成功安装rvm后,在bash中键入以下命令。 rvm install ruby-2.0.0-p0 这是结果日志。 Searching for binary rubies, this might take some time. No binary rubies available for: debian/wheezy_sid/i386/ruby-2.0.0-p0. Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies. Installing Ruby from source to: /home/javier/.rvm/rubies/ruby-2.0.0-p0, this may take a while depending on your cpu(s)… ruby-2.0.0-p0 – #downloading ruby-2.0.0-p0, this […]

如何删除XCode 4.2并安装4.1以在OSX Lion上开发Ruby / Rails?

我使用RVM(ruby版本管理器)开发Rails应用程序。 我不得不下载XCode,在应用程序商店我只得到版本4.2。 现在RVM说它不能用这个XCode正确地构建rubies,所以我遵循了这个教程: http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/ 我从控制台中键入rvm requirements时显示的链接下载了XCode版本。 (https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg) 现在,有一个带有installXCodeLion软件包的3.09 GB .dmg,它安装成功,但在我的系统上没有XCode或任何东西。 (我也停止了iTunesHelper流程…) 有谁知道如何安装XCode 4.1? 或者从Apple正式获得它的位置? 或者有人在Lion上成功使用RVM和ruby 1.9.2 w / Rail 3.1?

无法在任何来源中找到rake-10.1.0

我一直在使用rails并且一直试图用rake 10.1.0设置乘客并且它发回给我这个错误。 这是错误的链接。 网站LInk It looks like Bundler could not find a gem. This is probably because your application is being run under a different environment than it’s supposed to. Please check the following: * Is this app supposed to be run as the `rails` user? * Is this app being run on the correct […]

Ruby 1.9.2 – 读取并解析远程CSV

我正在寻找一种方法来本地读取和解析远程CSV(托管在特定网站上)。 我在互联网上发现了一些有趣的例子,它们使用了FasterCSV,在ruby 1.9.2中已经合并为CSV。 我发现你可以用这种方式使用gems’csv’和’open-uri’来读取远程CSV: require ‘csv’ require ‘open-uri’ def read(url) open(url) do |f| f.each_line do |l| CSV.parse(l) do |row| puts row end end end end 但是当我调用这个函数时,我得到一个例外: ERROR IOError: closed stream 谁能解释我为什么? 有什么不对的吗? 我应该选择其他方法来阅读远程CSV吗? 更新 我到目前为止找到的最佳解决方案是: def read(url) data = [] begin open(url) do |f| data = CSV.parse f end rescue IOError => e # Silently […]

rails -v无法加载这样的文件 – rails / cli(LoadError)

Ubuntu 14.04。 所以一切都工作正常,我的终端打开了两个标签 – 一个标签在我的sebcoles项目上运行webbrick,另一个标签我用来克隆我的english_teacher repo。 这一切都下载得很好,我改成了目录。 我只需将所有内容粘贴在这里 – 这一切都很清楚: andrew:projects$ cd pinteresting RVM used your Gemfile for selecting Ruby, it is all fine – Heroku does that too, you can ignore these warnings with ‘rvm rvmrc warning ignore /home/andrew/projects/pinteresting/Gemfile’. To ignore the warning for all files run ‘rvm rvmrc warning ignore allGemfiles’. ruby-2.1.5 is […]

运行make install时出现RVM错误。 安装power_assert gem时出错

我试图在我的拱形机器中安装ruby 2.2.2。 当我运行rvm install时,我收到以下错误。 试了好几次。 甚至删除了rvm并重新安装。 仍然是同一个问题。 ○ rvm install 2.2.2 Searching for binary rubies, this might take some time. No binary rubies available for: arch/libc-2.21/x86_64/ruby-2.2.2. Continuing with compilation. Please read ‘rvm help mount’ to get more information on binary rubies. Checking requirements for arch. Requirements installation successful. Installing Ruby from source to: /home/pubudu/.rvm/rubies/ruby-2.2.2, this […]

Readline在rvm中不起作用 – Ubuntu 11.10

我在我的ubyntu 11.10上使用rvm。 我的readline无法正常工作,我尝试了ruby extconf.rb但它没有通过。 输出如下: $ ruby extconf.rb checking for tgetnum() in -lncurses… yes checking for readline/readline.h… yes checking for readline/history.h… yes checking for readline() in -lreadline… no checking for readline() in -ledit… no checking for editline/readline.h… no 我尝试安装libncurses5-dev和libreadline5-dev $ sudo apt-get install libncurses5-dev libreadline5-dev Reading package lists… Done Building dependency tree Reading state information… […]