OS X Mountain Lion: gcc-4.2 No such file or directory

If you have Xcode installed, gcc should be available. Check where it is with: kamil$ which gcc /usr/bin/gcc Then make a user-land symbolic link from gcc-4.2 to plain gcc: kamil$ sudo ln -s ~/bin/gcc /usr/bin/gcc-4.2 (Ensure the user-land bind folder is in your path via export PATH=…:$HOME/bin in your .bash_profile or .zshrc.) Gem installed fine … Read more

bundler: failed to load command: jekyll

I stumbled upon this question when I ran into the issue of trying to set up github pages. It seems that in the latest version of ruby that is installed with homebrew webrick is not included by default. Here is the github issue: https://github.com/github/pages-gem/issues/752. Recommendations are to either use ruby 2.7 or to manually add … Read more

Is Cassandra production ready for Ruby on Rails?

Twitter is running rails on most of their front end. Fauna’s client is actually built and released by twitter, so you can be pretty certain that it’s up to date and stable on large workloads. Looking at the history of commits shows that there are frequent improvements being pushed to it, which is great. Most … Read more

What is the difference between “~> 4.0.1”, “4.0.1” and no version specifier in a Gemfile? [duplicate]

The first will tell bundler to load any gem that varies with the last (patch) number. So 4.0.x where x is 1 or greater. The second will only load 4.0.1. The third will get the highest value that works (depending on what the needs of the rest of your gems in your Gemfile) or will … Read more

How to set Ruby’s load path externally

See the “Ruby and Its World” chapter from The Pickaxe Book, specifically the section on environment variables. Excerpt: RUBYLIB Additional search path for Ruby programs ($SAFE must be 0). DLN_LIBRARY_PATH Search path for dynamically loaded modules. RUBYLIB_PREFIX (Windows only) Mangle the RUBYLIB search path by adding this prefix to each component.

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