rbenv

Error with Rails Edge/4 `require': cannot load such file — thread_safe

两盒软妹~` 提交于 2019-12-04 13:59:04
Following ths instructions here for getting an app running off Rails Edge to test Rails 4: What is the best way to generate a Rails app using edge? and How to create Edge rails application? But running into this error: `require': cannot load such file -- thread_safe (LoadError) Using the command: rails new Edge --edge --skip-bundle --database=postgresql --skip-test-unit --skip-index-html A checkout of Rails master bin dir is on my path. I am using rbenv with ruby 1.9.3p327. I have cleared all my installed gems out, just running bundler. Rails 3.2.9 works fine on my system, have an app in

Installing Ruby on WSL (Windows Subsystem for Linux)

自闭症网瘾萝莉.ら 提交于 2019-12-04 12:17:36
问题 First off, sorry for my bad English. I'm trying to install Ruby 2.3.0 on my system with rbenv via Windows Subsystem for Linux aka Ubuntu on Windows 10. I followed this instruction (but not 100% exactly). but every time I try, It fails to build Ruby with this log. check struct members.. check libraries.... Use ActiveTcl libraries (if available). Search tclConfig.sh and tkConfig.sh.............................. Fail to find [tclConfig.sh, tkConfig.sh] Use X11 libraries (or use TK_XINCLUDES/TK

Should rbenv be installed system-wide, or at a user level?

◇◆丶佛笑我妖孽 提交于 2019-12-04 10:17:41
问题 I'm building a vagrant setup, and part of that is installing rbenv. I'm using librarian-chef to manage all my chef cookbooks, and it installs rbenv and ruby-build. However, when I tried to ssh into my Vagrant VM and type ruby -v I got the standard system-installed ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux] . Thinking that maybe rbenv was not installed, I tried running rbenv versions , but rbenv was in fact installed: vagrant@precise64:~$ rbenv versions * system (set by /opt/rbenv

Why do I get the error “Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2” although I have 2.2.2 installed

﹥>﹥吖頭↗ 提交于 2019-12-04 08:59:21
问题 I'm using rbenv and I get the error Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2 when I run the bundle install command in my project. The strange thing is that I've actually got the 2.2.2 version installed (as my Gemfile specifies), and not the 2.0.0 version. (See image below). I tried the solution offered in this thread: Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0, but it had no effect. I'm on an MacBook Air with Yosemite if that makes any difference. Update:

OpenSSL error installing ruby 2.0.0-p195 on Mac with rbenv

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 08:24:19
问题 I'm trying to install Ruby 2.0.0-p195 using rbenv on a Mac (Mountain Lion) and got this error. BUILD FAILED Inspect or clean up the working tree at /var/folders/vt/27n8h2yj27v7rzq58075f3_m0000gn/T/ruby-build.20130618163859.1669 Results logged to /var/folders/vt/27n8h2yj27v7rzq58075f3_m0000gn/T/ruby-build.20130618163859.1669.log Last 10 log lines: installing default gems: /Users/me/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications) bigdecimal 1.2.0 io

gem install debugger -v '1.5.0' fails

限于喜欢 提交于 2019-12-04 03:46:25
问题 I am trying to do bundle in the large project on Mavericks and some gems are broken or something wrong with my environment in spite of this is fresh install of rbenv. $ gem install debugger -v '1.5.0' Building native extensions. This could take a while... ERROR: Error installing debugger: ERROR: Failed to build gem native extension. /Users/samat/.rbenv/versions/1.9.3-p448/bin/ruby extconf.rb checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id

Rails server not running after updating to ruby 2.1.4

五迷三道 提交于 2019-12-04 02:30:40
问题 I was using rails 4.1.7 with ruby 2.0.0 and have developed an application. Recently upgraded to ruby 2.1.4 and made that as "Local" setting using rbenv. Now after doing "gem install rails", everything installed well. Question is now if I try to run server, i am getting error "Could not find rake-10.4.0 in any of the sources Run bundle install to install missing gems." bundle show rake reveals that its installed under "bundle show rake /Library/Ruby/Gems/2.0.0/gems/rake-10.4.0" Shouldn't this

rbenv: ruby: command not found

我们两清 提交于 2019-12-03 15:44:27
问题 I am using rbenv with ruby version 1.9.1-p378 on the local dir. Command ruby -v gives the following error: rbenv: ruby: command not found The `ruby' command exists in these Ruby versions: 2.0.0-p353 Any clue why this happens? The bundle, rails commands do not work either. Command rbenv versions : * 1.9.1-p378 (set by /home/user/Desktop/r1/noko1/.ruby-version) 2.0.0-p353 回答1: The complaint you get comes from rbenv. The fact that it's complaining shows that rbenv is set up and working. Figure

Setting up env, OSX rbenv and bundle battle

久未见 提交于 2019-12-03 11:55:39
问题 So i have just swapped over to mac from ubuntu and setting up the env has not been as easy as promised. this is the process i followed. installed xcode - then went into the prefrences and downloaded the command line tools then verified that the right version was installed, by running gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for

rbenv and bundler: “bad interpreter: No such file or directory”

青春壹個敷衍的年華 提交于 2019-12-03 11:11:49
I messed up my configuration. I am running Ubuntu 14.04 and had some issues when I tried to move from a project to an other. I tried to uninstall and reinstall rbenv and then installed Ruby 2.1.7 following this guide: https://gorails.com/setup/ubuntu/14.04 . Now, when I run gem install bundler nothing happens and I can't install any gems. When I type bundler or bundler -v I see this: /usr/local/bin/bundler: /usr/bin/ruby1.9.1: bad interpreter: No such file or directory I spent many hours trying to solve this but I really don't know what to do. binarymason The fact that gem is being executed by