rvm

Cannot install rails gem on ruby 2.3.1

情到浓时终转凉″ 提交于 2019-12-12 02:09:04
问题 I am trying to install rails on ruby 2.3.1. $ ruby -v ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] Ruby installed. $ rvm -v rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] RVM exists. $ gem install rails Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. current directory: /usr/local/rvm/gems/ruby-2.3.1/gems/nokogiri-1.7.0.1/ext

Can't compile / install Ruby 1.8.6 with RVM (Error running '__rvm_make -B -j8')

荒凉一梦 提交于 2019-12-12 02:06:41
问题 I am having issues compiling Ruby 1.8.6 using RVM on FreeBSD 10. How can I solve this? Commands run: rvm remove 1.8.6 (to make sure we start clean) rvm autolibs enable rvm install 1.8.6 --with-gcc=clang Install log and error given: [root@sensation ~]# rvm install 1.8.6 --with-gcc=clang Checking requirements for freebsd. Requirements installation successful. Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.8.6-p420, this may take a while depending on your cpu(s)... ruby-1.8.6-p420

RVM Ruby install Issue [closed]

半世苍凉 提交于 2019-12-12 01:29:27
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I am trying to install Ruby 1.9.3 via RVM. However, I keep getting the error in the attached picture. I would appreciate any help. 回答1: What you see isn

Trouble on re-installing Ruby from scratch

六眼飞鱼酱① 提交于 2019-12-11 23:33:27
问题 I am using rvm (Ruby Version Manager) and I deleted some gems by running the gem update --system command. I had some serious problem so I decided to reinstall rvm and ruby 1.9.2 on my local machine (MacOS Snow Leopard 10.6.7). Now, if I run the rails s command I get the following $ rails s /Library/Ruby/Site/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError) from /Library/Ruby/Site/1.8/rubygems.rb:214:in `activate' from /Library/Ruby/Site/1.8

Rbenv not rehashing correctly and making shims

房东的猫 提交于 2019-12-11 23:08:59
问题 The bottom line is, rbenv isn't making shims. I've exhausted ideas of what could be the problem. After a few days of banging my head against a wall to fix but no avail, I think it's time to ask for help. I'm attempting to make the switch from RVM to rbenv, so that could obviously be a factor here. Any ideas/help would be great. Here's what happens: [09:38] ~ $ gem install pry Fetching: pry-0.10.2.gem (100%) Successfully installed pry-0.10.2 1 gem installed [09:39] ~ $ rbenv rehash [09:40] ~ $

RVM: how to change default path to home directory?

十年热恋 提交于 2019-12-11 22:46:13
问题 I got this error on using RVM kithokit@14:22:59 ~ $ rvm install 1.9.3 mkdir: cannot create directory ‘/usr/local/rvm/log/ruby-1.9.3-p448’: Permission denied Could not detect ruby version/name for installation, please be more specific. How can i change the default directory to /home/kithokit/.rvm 回答1: You can remove all the trace by executing this script #!/bin/bash /usr/bin/sudo rm -rf $HOME/.rvm $HOME/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm /usr/local/bin/rvm /usr/bin/sudo

如何以CSV格式输出MySQL查询结果?

会有一股神秘感。 提交于 2019-12-11 22:02:17
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 有没有一种简单的方法可以从Linux命令行运行MySQL查询并以 CSV 格式输出结果? 这是我现在正在做的事情: mysql -u uid -ppwd -D dbname << EOQ | sed -e 's/ /,/g' | tee list.csv select id, concat("\"",name,"\"") as name from students EOQ 当有很多列需​​要用引号引起来时,或者结果中有引号需要转义时,它将变得混乱。 #1楼 MySQL Workbench 可以将记录集导出为CSV,并且似乎可以很好地处理字段中的逗号。 CSV在OpenOffice中可以正常打开。 #2楼 仅限于Unix / Cygwin ,将其通过'tr'传递: mysql <database> -e "<query here>" | tr '\t' ',' > data.csv 注意:这既不处理嵌入式逗号,也不处理嵌入式制表符。 #3楼 mysql --batch,-B 使用tab作为列分隔符打印结果,每一行都换行。 使用该选项,mysql不使用历史文件。 批处理模式导致以非表格格式输出格式并转义特殊字符。 可以通过使用原始模式来禁用转义。 请参阅--raw选项的说明。 这将为您提供一个制表符分隔的文件。

Omega Compass Library error

我的未来我决定 提交于 2019-12-11 20:38:19
问题 I am going through the motions to understanding the Omega 4 Theme in drupal. I did the sub-theme through drush and I have rvm, ruby and I believe all the gems installed. I should add that I have rgbapng & compass installed. I am not familiar with the @global though... However when I go to the site I see this error: Syntax error: File to import not found or unreadable: rpbapng. Load paths: /Library/Webserver/Documents/tpw/sites/all/themes/omega/omega/sass /Users/User/.rvm/gems/ruby-1.9.3-p484

Textmate + RVM + Rake = Rake not using expected gem environment

孤者浪人 提交于 2019-12-11 19:51:29
问题 I am using: TextMate: version 2.0-alpha.9511 rvm: 1.25.15 (stable) ruby: version 2.1.0p0 oh-my-zshell: 5.0.2 Mac OS X: 10.9.1 (Mavericks) I have rvm and textmate set up to use TM_RUBY=/Users/<myuser>/.rvm/bin/rvm-auto-ruby The problem: when I try to run my rake tasks using the rake bundle in textmate, I get some errors about the file not loading: "cannot load such file -- rubocop/rake_task" The clue: I changed my rakefile so that it simply reports the "gem env" for the default task. When I

RVM cannot build OpenSSL on Mountain Lion

孤街浪徒 提交于 2019-12-11 18:05:35
问题 Ruby will build just fine, but it won't build with OpenSSL support. I've tried setting CC to point to both the XCode 4.6 command line tools' copy of GCC and MacPorts' version of gcc 4.2. That doesn't work. I've added --with-openssl-dir=$rvm_path/usr and --with-opt-dir=$rvm_path/usr . Neither of those work. Each time it fails, I check the log and it just says that there was an error configuring OpenSSL and that it will be skipped. Any ideas? 回答1: I had the same issue recently after installing