rvm

Cron is running in home directory instead of file directory

与世无争的帅哥 提交于 2021-02-16 14:42:25
问题 I followed some other posts in stackoverflow and successfully setup cron with RVM using rvm cron setup and injected some ENV to the crontab file. When I was troubleshooting why the dotenv gem is not working, I realised the following: I placed my test.rb in file path /home/myuser/ruby/test.rb and had my crontab file as shown below: * * * * * ruby /home/myuser/ruby/test.rb >> /home/myuser/ruby/output.log and when I puts the output of the test.rb with Dir.pwd . The output states that the rb is

Cannot source RVM files because of PowerPC architecture

别说谁变了你拦得住时间么 提交于 2021-02-10 06:56:15
问题 I ran the railsinstaller from railsinstaller.org on my OS X 10.7.5, then ran into a few issues with RVM: 1) First, I got "RVM: command not found". So I created the .bash_profile and added [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 2) Restarted the terminal, but still getting the same error message. I checked the .rvm folder to see if it's properly installed; it seems to be missing the "scripts" folder. So I ran \curl -L https://get.rvm.io | bash -s stable 3) Then I

rvm install 2.1.4 hangs on OSX

一笑奈何 提交于 2021-02-10 04:07:30
问题 when attempting to install a new version of ruby with the command: rvm install 2.1.4 the process hangs in the middle of compiling: ruby-2.1.4 - #downloading ruby-2.1.4, this may take a while depending on your connection... ruby-2.1.4 - #extracting ruby-2.1.4 to /Users/alutz/.rvm/src/ruby-2.1.4.... ruby-2.1.4 - #configuring..................................................... ruby-2.1.4 - #post-configuration. ruby-2.1.4 - #compiling.......\ 回答1: This solved my issue: rvm install 2.1.4 -- -

rvm install 2.1.4 hangs on OSX

て烟熏妆下的殇ゞ 提交于 2021-02-10 04:01:22
问题 when attempting to install a new version of ruby with the command: rvm install 2.1.4 the process hangs in the middle of compiling: ruby-2.1.4 - #downloading ruby-2.1.4, this may take a while depending on your connection... ruby-2.1.4 - #extracting ruby-2.1.4 to /Users/alutz/.rvm/src/ruby-2.1.4.... ruby-2.1.4 - #configuring..................................................... ruby-2.1.4 - #post-configuration. ruby-2.1.4 - #compiling.......\ 回答1: This solved my issue: rvm install 2.1.4 -- -

Ruby 1.9.3 Invalid byte sequence in UTF-8 explanation needed

懵懂的女人 提交于 2021-02-08 09:30:08
问题 I installed RVM and Ruby through Cygwin on Windows 7. I am now trying to install Omega bundle following this guide. The command is bundle install Which gives an error 'command not found'. The solution for this is to install bundler via gem install bundler But this gives an 'Invalid byte sequence in UTF-8 error'. The solution for this is described in this post. But I don't understand where I should place this snippet. require 'iconv' unless String.method_defined?(:encode) if String.method

cocoapods 执行pod trunk push 报错CDN: trunk URL couldn't be downloaded: https://raw.githubusercon...

£可爱£侵袭症+ 提交于 2021-02-08 07:56:45
今天发布ios sdk到cocoapods,最后执行pod trunk push时,出现了题目中的报错。 遗憾的时,查了一圈,都是让再podfile里加源,可是我是push啊,不是install和update啊,我没有podfile呀!咋办? 看到一个是在/etc/hosts中加 199 .232 .4 .133 raw .githubusercontent .com 然而并没有什么卵用。 好吧,我决定卸载重新装了,步骤如下: 1.查一下rvm ,ruby是不是好好的。查能显示版本号就可以了。 (1) rvm -v (2) ruby -v 2.查找cocoapods相关安装并卸载: 先查看本地安装过的cocopods相关东西,命令如下: $ gem list --local | grep cocoapods 然后逐个删除(如下示例): $ sudo gem uninstall cocoapods-core 执行安装cocoapods的操作: $ sudo gem install cocoapods 3.安装: OS X 10.11以后系统的安装cocoapods 指令:$ sudo gem install -n /usr/local/bin cocoapods --pre OS X 10.11之前系统的安装cocoapods 指令:$ sudo gem install

Error while installing Ruby 2.3.7 in mac os 10.15.5 Catalina using RVM; OpenSSL not found

£可爱£侵袭症+ 提交于 2021-02-08 06:50:58
问题 I am trying to install ruby using below commands source ~/.rvm/scripts/rvm rvm install 2.3.7 I encountered this error while I was trying to install ruby 2.3.7 in MacOs Catalina 10.15.5 rvm install 2.3.7 Warning, new version of rvm available '1.29.10', you are using older version '1.29.9'. You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc You can update manually with: rvm get VERSION (e.g. 'rvm get

Why rvm needs login shell?

余生长醉 提交于 2021-02-07 22:46:17
问题 As far as I know, rvm is a set of bash scripts. Why it need login shells? Which property which only exists in login shells is necessary for rvm? Related post: rvm installation not working: “RVM is not a function” 回答1: Your RVM config line ( [[ -s "$HOME/.rvm ... ) likely located is in .profile , which is only read when your bash is on login-shell mode. There are other config files that are read in other modes as well, like .bashrc when the shell is interactive, but non-login or file defined

gpg: keyserver receive failed: No route to host stack overflow

左心房为你撑大大i 提交于 2021-02-07 13:20:03
问题 i'm trying to install fastlane for my ios app but when i'm trying to install RVM, i'm facing issues. My command is gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113************* 7D2BAF1CF37B13E2069D69561************* 回答1: Please use hkp://ipv4.pool.sks-keyservers.net instead of hkp://keys.gnupg.net type this command gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113************* 7D2BAF1CF37B13E2069D69561************* 回答2: TL;DR;

gpg: keyserver receive failed: No route to host stack overflow

六月ゝ 毕业季﹏ 提交于 2021-02-07 13:18:40
问题 i'm trying to install fastlane for my ios app but when i'm trying to install RVM, i'm facing issues. My command is gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113************* 7D2BAF1CF37B13E2069D69561************* 回答1: Please use hkp://ipv4.pool.sks-keyservers.net instead of hkp://keys.gnupg.net type this command gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113************* 7D2BAF1CF37B13E2069D69561************* 回答2: TL;DR;