Unknown command 'rails-console' in vmc - vmc

vmc works well except "rails-console" command is unknown. my vmc version is 0.4.7 and os is mac 10.7.5. But it seems this command should be supported. Do you know why rails-console doesn't work for my environment?

uninstall vmc version 0.4.7 by the following command
gem uninstall vmc -v 0.4.7
Then install vmc version 0.3.21 and caldecott gem.
gem install vmc -v 0.3.21
gem install caldecott
Try running the following command:-
vmc rails-console application_name
It worked for me.

Related

Could not find 'ffi' (>= 1.3.0) among 85 total gem(s) (Gem::MissingSpecError) React native IOS on pod install

Hi I'm trying to run my react native app on mac mini. I can run another app also this app to but when i write pod install in terminal it gives this error.
1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1449:in `block in activate_dependencies'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'ffi' (>= 1.3.0) among 85 total gem(s) (Gem::MissingSpecError)
Checked in
'GEM_PATH=/Users/xx/.gem/ruby/2.6.0:/Library/Ruby/Gems/2.6.0:/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0', execute `gem env` for more information
I tryed a lot like this code
sudo gem pristine --all, gem pristine --all
sudo gem install -n /usr/local/bin cocoapods -v 1.8.4
delete and ini pod init/ which gave error
brew reinstall cocoapods
\curl -sSL https://get.rvm.io | bash -s stable --ruby
You can try this command
sudo gem uninstall -aIx
rm -rf ~/.gem
sudo gem install cocoapods
sudo chown -R $USER ~/Library/Caches/CocoaPods
For me, install a new version of ruby resolved this issue.
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm list known
rvm install 2.7.2
sudo gem install cocoapods
Same issue. Just updating gem package manager is works for me
gem update
Terminal will display installing 'ffi'
Successfully installed ffi-1.15.5
i solved the issue by installing the command line tool for XCode.
Just download the specific CLT from apple website
I just did a
bundle install
and that allowed me to do a pod install after upgrading (without asking me to Xcode 14).

Running into issues installing ruby 2.0 with rvm

The error I keep getting when rvm is trying to import the default gemsets, is:
ruby-2.0.0-p247 - #importing default gemsets, this may take time...............................
/Users/****/.rvm/scripts/functions/support: line 291: 84474 Segmentation fault: 11 "$ruby_path" -rrbconfig -e '\
File.open("'"$config_path"'","w") { |file|
RbConfig::CONFIG.sort.each{|key,value|
file.write("#{key.gsub(/\.|-/,"_")}=\"#{value.gsub("$","\\$")}\"\n")
}
}
' > /dev/null 2>&1
rvm -v
rvm 1.21.17 () by Wayne E. Seguin , Michal Papis [https://rvm.io/]
xcode 4.6.3
uname -a
Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
sw_vers -productVersion :10.7.5
This can be happening because this ruby was build on OSX 10.8 and this is OSX 10.7 (like mentioned in the other answer), you can make sure it's all fine with disabling binary rubies:
rvm reinstall 2.0.0 --disable-binary
this will tell rvm to not search for binary and to go straight to compile process.
If this works for you then open a ticket for rvm to prepare binaries which are compatible with OSX 10.7
Update 2013.08.06
I have removed the link to binary osx/10.7/x86_64/ruby-2.0.0-p247 - if you prefer to use binaries then please open a ticket for rvm to build version for your system.
If the code you are showing segfaults, it must be a bug in Ruby 2.0. I recommend that you submit a bug report to https://bugs.ruby-lang.org/.
I had the same problem at OS X 10.7.5
I tried: sudo rvm reinstall 2.0.0, but it fails again.
Finally I chose to install a previous version with:
sudo rvm install 1.9.3 and all its ok

Unable to install rvm on mac OSX 10.8.2

Error running 'make', please read /Users/Megha/.rvm/log/ruby-1.9.3-p374/make.log
There has been an error while running make. Halting the installation.
There is a new experimental way of dealing with dependencies in RVM => https://github.com/wayneeseguin/rvm/pull/1544 :
rvm get branch /features/improved_dependencies
rvm pkg remove
rvm remove 1.9.3
rvm install 1.9.3
You need the command lines tools (install xcode via the app store - then open it to install the command lines tools). I am talking 1Gb+ so it will take some time.
After that, get brew:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Update and run brew to install gcc:
brew update
brew tap homebrew/dupes
brew install apple-gcc42
Then RVM and ruby 1.9.3 should work:
curl -L https://get.rvm.io | bash -s stable --rails
rvm install 1.9.3

Can't install RMagick with rbenv

I'm using rbenv on my Ubuntu 10.04 server and I already installed ImageMagick, but I can't get RMagick to install successfully. I get the following error message
Can't install RMagick 2.13.1. Can't find MagickWand.h
Any ideas?
You need to install the development headers for libmagickwand like so:
apt-get install libmagickwand-dev

can't get "rails console" to work on ubuntu 11.10

I want to use rails console and I'm using ubuntun 11.10 currently I have found the issue
error is something :
completion.rb:9:in `require': no such file to load -- readline (LoadError)
and I found a way to solve it:
http://blog.jasonmeridth.com/2010/11/25/readline-error-with-rvm-and-rails-3.html
but seems in ubuntu 11.10 the libreadline5-dev is missed and it is replaced with version 6
I installed version 6 and also I get the version 5 from
https://launchpad.net/ubuntu/oneiric/i386/libreadline-gplv2-dev/5.2-9ubuntu1
but yet if I try to run following code :
ruby extconf.rb
I'll get following lines :
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
the "no"s part is my problem , so how can I solve this problem?
Ubuntu 11.10 uses newer readline library which not in sync with the readline package offered by rvm
To solve this (assuming you use single-user installation of rvm) do:
1) ensure you have installed ubuntus readline and editline dev packages
sudo apt-get install libreadline6 libreadline6-dev
2) configure ruby's readline extension to use the systems libs, not rvm's packages
rvm pkg uninstall readline
cd ~/.rvm/src/ruby-1.9.2-p290/ext/readline
ruby extconf.rb --with-editline-dir=/usr/ --with-readline-dir=/usr/
make
make install
3) go to your project and start up the rails console
Tip: You can call
rvm requirements
to see what ubuntu packages should be installed to use rvm ruby
You have to install the readline development packages before compiling ruby. Just run
sudo apt-get install libreadline6-dev
Alternative (as suggested in the article you linked) you can use RVM to get the appropriate readline sources by running
rvm package install readline
Edit: Once you've installed the readline packages from source, you can install your rubies like this
rvm install 1.9.3 --with-readline-dir="$rvm_path/usr"
If you alredy have installd a specific ruby, just use reinstall instead on install.