Mountain Lion rvm install 1.8.7 x11 error

Try to install X11 via http://xquartz.macosforge.org/landing/ set the correct path to the X11 library for the compiler with: export CPPFLAGS=-I/opt/X11/include then try to reinstall ruby, passing to the compiler where gcc-4.2 is: CC=/usr/local/bin/gcc-4.2 rvm reinstall 1.8.7 Without CC I got a lot of segmentation faults.

Rails 5.2.0 with Ruby 2.5.1 console – `warning:` `already` initialized constant FileUtils::VERSION

I had the same issue. The one step missing from your post is to uninstall the fileutils gem first, then gem update with the default option. gem uninstall fileutils Successfully uninstalled fileutils-1.1.0 gem update fileutils –default Updating installed gems Updating fileutils Fetching: fileutils-1.1.0.gem (100%) Successfully installed fileutils-1.1.0 That got rid of the verbose fileutils messages … Read more

RVM equivalent for PHP?

For PHP alternatives to RVM and rbenv, you have phpbrew, phpenv and php-version. Please be aware that I am the author of php-version so of course I prefer it as I wrote it to scratch my own itch (I wanted something minimal with command completion); however, phpenv is quite good as well. You would do … Read more

Xcode – configure: error: no acceptable C compiler found in $PATH

The critical step is actually installing the Xcode command line tools after the download completes and Xcode is installed After downloading and installing Xcode from the app store, you need to actually install the command line tools it provides. To do this open Xcode, go to preferences then downloads. There is an “Install” link to … Read more

Error installing Rmagick on Mountain Lion

It appears it’s a problem reported on the Homebrew github repo (https://github.com/mxcl/homebrew/issues/16625) blaming rmagick itself not supporting newer versions of imagemagick. On that same issue (https://github.com/mxcl/homebrew/issues/16625#issuecomment-11519383), you can find this link: https://coderwall.com/p/wnomjg which actually worked for me. This is what he does: cd /usr/local/Cellar/imagemagick/6.8.0-10/lib ln -s libMagick++-Q16.7.dylib libMagick++.dylib ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib ln -s libMagickWand-Q16.7.dylib … Read more

How do I rename a gemset?

There is an RVM gemset rename command. I’m not sure when it was introduced but it is present in 1.0.16. rvm gemset rename current_gemset_name new_gemset_name As of RVM 1.21 or higher it will automatically switch you to the newly renamed gemset. If you are on an older version of RVM you’ll also need to switch … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)