When you delete files by emptying the Trash, Mac OS X deletes the information used to access the files but doesn’t actually delete the files. Although the disk space used by deleted files is marked as free space, deleted files remain intact until new date is written over them. Because of this, deleted files can [...]
Archive for the ‘Rails – Mac Leopard’ Category
Erase free disk space – Disk Cleanup – Mac
Posted in Rails - Mac Leopard, tagged lessons, Mac OS on November 27, 2008 | Leave a Comment »
Mysql driver installation for Leopard
Posted in Rails - Mac Leopard on May 16, 2008 | Leave a Comment »
sudo env ARCHFLAGS=”-arch i386″ gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config
Installing Raspell on Intel Mac
Posted in Rails - Mac Leopard on December 29, 2007 | Leave a Comment »
If you come across the following error in Intel Mac when you build Raspell, Need to update 18 gems from http://gems.rubyforge.org ……………… complete Building native extensions. This could take a while… ERROR: While executing gem … (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension ruby extconf.rb install raspell checking for ruby.h… yes checking for aspell.h… [...]
RMagick Installation
Posted in Rails - Mac Leopard on December 28, 2007 | Leave a Comment »
You should have MacPorts(http://www.macports.org/?page_id=48) already installed. ~$ sudo port -d selfupdate Now use MacPorts to download and compile all the dependencies, ~$ sudo port install jpeg libpng libwmf tiff lcms freetype ghostscript sudo port install tiff -macosx sudo port install ImageMagick sudo gem install rmagick Hope you got RMagick.
Gem install behind proxy
Posted in Rails - Mac Leopard on December 27, 2007 | Leave a Comment »
The following error is thrown when we try to do ‘gem install something’ from behind the proxy. ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) Operation timed out – connect(2)(Errno::ETIMEDOUT) To get out of this, do the following in your terminal. export http_proxy=http://proxyserver:portnumber export ftp_proxy=http://proxyserver:portnumber Now enjoy doing gem installs. If you want this settings permanently, add [...]
SVN behind Proxy
Posted in Rails - Mac Leopard on December 27, 2007 | Leave a Comment »
If you are behind a proxy server and still want to download from the repository, you may come across this error. subversion/libsvn_ra_dav/util.c:826: (apr_err=175002) subversion/libsvn_ra_dav/util.c:296: (apr_err=175002) and so on Open the file (vim ~/.subversion/servers) and search for the following items and edit it. http-proxy-host = <proxy server name> http-proxy-port = <port number> You are done.
Postflight script failed
Posted in Rails - Mac Leopard on December 26, 2007 | 1 Comment »
I came across this error when I installed MacPorts in my system. <date> <hostname> : Install failed: The following install step failed: run postflight script for <myPackageName> I did the following to resolve this issue, echo $PATH Make sure the path begins with the MacPorts’ paths like the following /opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin If not add the following [...]
SVN Error cannot set LC_ALL locale
Posted in Rails - Mac Leopard on December 26, 2007 | 1 Comment »
If you come across this error when doing svn co, svn: error: cannot set LC_ALL locale svn: error: environment variable LANG is UTF-8 svn: error: please check that your locale name is correct Just issue in your terminal, export LC_ALL=en_US If you want this settings permanently, add them to ~/.profile or ~/.bash_profile
Ruby MYSQL Bindings
Posted in Rails - Mac Leopard on December 15, 2007 | Leave a Comment »
Download and install Mysql first. The installer is available in the following location, http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg Now issue the following command. sudo env ARCHFLAGS=”-arch i386″ gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config