Andrew Colclough

Web Design & Dev., Liberty, Economics, Football

ERROR: could not find [gem] locally or in a repository

gem install --system

I ran into this issue the other day and the above code worked. You may or may not need to run "sudo gem update --system" of course if you get a permissions problem.

Also - if you need to get a little info about your installation and/or version of gems:

"gem env"

Filed under  //   --system   ERROR   gems   install   repository   ruby   tip  

Install Apache/PHP/MySQL on Snow Leopard

Create /etc/php.ini and make it writable

cd /etc
sudo cp php.ini.default php.ini
sudo chmod 777 php.ini

In php.ini, find this line:

;date.timezone =

Uncomment it and insert your time zone (http://php.net/manual/en/timezones.php)

date.timezone =America/Vancouver

Restore php.ini permissions

sudo chmod 444 php.ini

Restart Apache

sudo apachectl restart

As promised. Hot tip - you should probably avoid Entropy just for now (certainly - they will update it).

For whatever reason - I had a myriad of problems attempting to get it to work with Apache on my new 64 bit machine. Once we switched back to the original Apache PHP5 module, it seemed to work properly.

Filed under  //   MySql   PHP   Snow Leopard   apache   install   module