Rails keeps telling me that it’s not currently installed
If you’re running a rails command immediately after installing rails, you will need to restart your terminal before your commands will be recognized.
If you’re running a rails command immediately after installing rails, you will need to restart your terminal before your commands will be recognized.
The problem comes from the mysql2 gem missing the dynamic library from MySQL. A cleaner solution than install_name_tool … would need to update your DYLD_LIBRARY_PATH to add MySQL libs to it. To do so, update your ~/.bash_profile to add the MySQL library folder : export DYLD_LIBRARY_PATH=”/usr/local/mysql/lib:$DYLD_LIBRARY_PATH” Note: You might want to update the MySQL location … Read more
You need to run the following $ source ~/.rvm/scripts/rvm then run this $ type rvm | head -n 1 and if you get rvm is a function the problem is solved. You also need to run user$ rvm requirements to see dependency requirements for your operating system Source: https://rvm.io/rvm/install/ I forget mention that you need … Read more
This answer was edited multiple times and now contains several alternative solutions. Try the simple “Edit 3” solution first. Ruby 1.9.3-p125 and later have official support for clang, so if you are installing such a version you should not need GCC. If you’re installing an older version of Ruby, read on. To compile Ruby with … Read more
You have broken version of RVM. Ubuntu does something to RVM that produces lots of errors, the only safe way of fixing for now is to: sudo apt-get –purge remove ruby-rvm sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh open new terminal and validate environment is clean from old RVM settings (should be no output): env | … Read more
For RVM & OSX users Make sure you use latest rvm: rvm get stable Then you can do two things: Update certificates: rvm osx-ssl-certs update all Update rubygems: rvm rubygems latest For non RVM users Find path for certificate: cert_file=$(ruby -ropenssl -e ‘puts OpenSSL::X509::DEFAULT_CERT_FILE’) Generate certificate: security find-certificate -a -p /Library/Keychains/System.keychain > “$cert_file” security find-certificate … Read more
There’s a simple command built-in that will pull it: rvm implode This will remove the rvm/ directory and all the rubies built within it. In order to remove the final trace of rvm, you need to remove the rvm gem, too, if you installed that: gem uninstall rvm There may be elements left over from … Read more