rvm

Cannot compile ruby 1.9.3

不羁的心 提交于 2019-11-30 11:58:10
问题 When I run rvm install 1.9.3 --with-gcc=clang on Mac OSX Lion, ruby does not compile, and I get the following error in (.rvm/log/ruby-1.9.3-p374/make.log) [2013-01-29 16:31:05] make CC = clang LD = ld LDSHARED = clang -dynamic -bundle CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration

Getting Ruby 1.8.7 installed on Mountain Lion (10.8)

妖精的绣舞 提交于 2019-11-30 11:48:38
问题 I'm having a lot of trouble getting Ruby 1.8.7 installed on my clean install of Mountain Lion. I've looked around on Stack Overflow and don't see anything that specifically addresses this issue and hope that someone might have encountered this before. I'm using the command line tools that can be downloaded with Xcode I haven't had any problems installing Ruby 1.9.3 via RVM and HomeBrew. When I try to install 1.8.7 I get the following message after it tries to compile: I first ran the command

/usr/bin/env ruby_noexec_wrapper fails with no file or directory

一个人想着一个人 提交于 2019-11-30 11:38:46
When I try to start chef-solr as service it's failing with the following error # service chef-solr start Starting chef-solr: /usr/bin/env: ruby_noexec_wrapper: No such file or directory [FAILED] But when I run it manually from command line it's running successfully # chef-solr -d -c /etc/chef/solr.rb -L /var/log/chef/solr.log -P /var/run/chef/solr.pid # echo $? 0 # ps -ef | grep chef root 2691 1 12 04:19 ? 00:00:01 java -Xmx256M -Xms256M -Dsolr.data.dir=/var/lib/chef/solr/data -Dsolr.solr.home=/var/lib/chef/solr/home -jar /var/lib/chef/solr/jetty/start.jar Here is my rvm info # rvm info ruby-1

Make error installing Ruby 1.9.2 with RVM and Readline under OSX Lion

雨燕双飞 提交于 2019-11-30 11:36:57
I'm having extensive problems getting rvm to work again under OSX Lion. Unsurprisingly, it seems to be a problem with readline, which is noted in several places. HOWEVER, (and this is an update) it seems that readline itself is not being installed correctly! Here is what I've tried so far: Reinstalling xcode (4.1) (I also removed the Developer folder first.) Cleaning and reinstalling all my ports as per http://trac.macports.org/wiki/Migration Reinstalling readline as per: https://rvm.beginrescueend.com/packages/readline/ Using that specific readline version: rvm install 1.9.2 --with-readline

RVM Command: source ~/.rvm/scripts/rvm

最后都变了- 提交于 2019-11-30 11:27:17
问题 I'm going through the rails by example tutorial series. I'm trying my best to find solutions prior to asking questions, so if I have missed anything I apologise. Every time I need to boot up RVM from the command line in terminal I need to punch a command so that RVM initialises: source ~/.rvm/scripts/rvm Is this normal? It seems that I cant get the RVM commands to work unless I punch in this code prior. Note I only have to enter the command once, not every time I need to enter an RVM command.

Ruby 1.9.2 - Read and parse a remote CSV

≡放荡痞女 提交于 2019-11-30 11:14:55
I am looking for a way to read and parse locally a remote CSV (hosted on a particular website). I found on the Internet a couple of interesting examples that make use of FasterCSV, that in ruby 1.9.2 has been merged into CSV. I found that you can read a remote CSV using the gems 'csv' and 'open-uri' this way: 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 But when I call this function, I get an exception: ERROR IOError: closed stream Anyone can explain me why? Is there anything wrong? Should I choose another

Ruby and “You must recompile Ruby with OpenSSL support or change the sources in your Gemfile”

隐身守侯 提交于 2019-11-30 10:28:31
问题 Using rvm I upgraded my ruby to 1.9.3-p392, also added 2.0.0, anytime I try to use this version when I run my bundle command I get this error. Could not load OpenSSL. You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL using RVM are available at rvm.io/packages/openssl. I have followed several different instructions on how to fix this. I have tried removing the version and installing it with the rvm

Why should I care about RVM's Gemset feature when I use Bundler?

丶灬走出姿态 提交于 2019-11-30 10:27:14
问题 I just don't get it. I thought, Bundler was developed to resolve version conflicts between gems. So that I just have to require "bundler/setup" and everything is fine, knowing that Bundler will load the correct versions of all my gems and their dependencies. Now, RVM is great for managing multiple Rubies, I know, but why should I care about the Gemset feature? Do I miss something here? Can it make my development even easier? Maybe, some of you can give me some hints on the perfect RVM +

Error installing ruby 1.9.3

好久不见. 提交于 2019-11-30 10:17:52
I'm trying to install Ruby 1.9.3 using rvm. However, when I type: rvm install 1.9.3 I get the following error: ERROR: Error running 'make ', please read /Users/nick/.rvm/log/ruby-1.9.3-rc1/make.log ERROR: There has been an error while running make. Halting the installation. I'm running Mac OS X Lion and my current version of Ruby is 1.9.2. Edit: make.log: make[1]: Entering directory `/Users/nick/.rvm/src/ruby-1.9.3/ext/readline' /usr/bin/gcc-4.2 -I. -I../../.ext/include/x86_64-darwin11.0.0 -I../.././include -I../.././ext/readline -DRUBY_EXTCONF_H=\"extconf.h\" -I/Users/nick/.rvm/usr/include -D

“rails generate” not working

橙三吉。 提交于 2019-11-30 10:16:17
问题 When using ruby 2.1.0 (or 2.1.1) and I type rails g nothing happens. It simply hangs. But when I change to 1.9.3, using rvm use 1.9.3 it works as expected. How can I debug this? What might be causing this command to hang, only on ruby > 2.0.0? I have tried reinstalling both rails and ruby! 回答1: Have you tried to run: spring stop rails generate hangs may because spring is already running. see https://github.com/rails/spring/issues/265 回答2: I tried all of this and it didn't work for me. Turns