Monthly Archive for octubre, 2007

Installing Firebird 1.5.4 on Intel Based Macs

Previous steps

If you try to install firebird on intel based macs you'll see there's no package available. There's just the old powerpc. So the only way is building it yourself. To achieve it we need the following packages you can easily install with mac ports:

Xcode-2.4.1 (previous registration is needed)
– autoconf
– GNU libtool
– Wget

Installing darwin ports is easy. Download selfinstall image.

'Darwin

Double click on the image file to mount it, then double click selfinstall file and it installs.

After installing darwin ports open Terminal to install needed packages.

'Terminal

Installing needed packages

$ sudo port install autoconf
$ sudo port install glibtool
$ sudo port install wget

Preparing to build Firebird

Downloading sources and intel macs patch

$ wget http://prdownloads.sourceforge.net/firebird/firebird-1.5.4.4910.tar.bz2
$ wget http://visha.org/firebird-1.5.4.4910-MacOSX+NetBSD.patch

Unpacking and patching sources

$ tar jxf firebird-1.5.4.4910.tar.bz2
$ cd firebird-1.5.4.4910
$ patch -p0 < ../firebird-1.5.4.4910-MacOSX+NetBSD.patch

Building sources and installing

$ ./autogen.sh
$ make
$ sudo make install

Setting firebird utils on the path

$ echo 'export PATH="/Library/Frameworks/Firebird.framework/Resources/bin:$PATH"' \
>> ~/.bash_login

Applying new path

$ export PATH="/Library/Frameworks/Firebird.framework/Resources/bin:$PATH"

Building ruby on a separate folder

I had installed ruby throw macports but I want to update a newer version. So I build it.


iMac:~ ruby$./configure cialis pills –-prefix=/opt/ruby_dir \
–-enable-shared \
–-enable-pthread \
–-enable-install-doc && make
iMac:~ ruby$sudo make install

It seems to work well, but when I have tried to use irb it breaks with the following error:


iMac:~ ricard$irb
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
Referenced from: /opt/derma/lib/ruby/1.8/i686-darwin8.10.1/readline.bundle
Expected in: flat namespace

Trace/BPT trap

The solutions I have found it's easy.

Consists in build ruby –-with-readline-dir as follows:

iMac:~ ruby$./configure –-prefix=/opt/ruby_dir \
–-enable-shared \
–-enable-pthread \
–-with-readline-dir=/usr/local \
–-enable-install-doc && make
iMac:~ ruby$sudo make install

And that's it.

Note:
To be able to use new ruby compilation in an easy way it's a good idea to change PATH.


iMac:~ ruby$cd
iMac:~ ricard$echo '' >> .bash_login
iMac:~ ricard$echo 'export PATH="/opt/ruby_dir/bin:$PATH"' >> .bash_login