29th Dec, 2007

Installing Raspell on Intel Mac

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… yes
checking for main() in -laspell… yes
creating Makefile

make
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -DHAVE_RUBY_H -DHAVE_ASPELL_H -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -c raspell.c
cc -arch ppc -arch i386 -pipe -bundle -o raspell.bundle raspell.o -L”.” -L”/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib” -L. -arch ppc -arch i386 -lruby -laspell -lpthread -ldl -lm
ld: warning in /usr/local/lib/libaspell.dylib, file is not of required architecture
Undefined symbols for architecture ppc:
“_aspell_config_error”, referenced from:
_set_option in raspell.o
_aspell_conf_retrieve in raspell.o
_aspell_conf_retrieve_list in raspell.o
“_aspell_config_error_message”, referenced from:
_set_option in raspell.o
_aspell_conf_retrieve in raspell.o
_aspell_conf_retrieve_list in raspell.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can’t open input file: /var/folders/Y6/Y6OCE2VvE1OjfNc4+0PFK++++TI/-Tmp-//ccg53LOc.out (No such file or directory)
make: *** [raspell.bundle] Error
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/raspell-1.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/raspell-1.1/ext/gem_make.out

Go to the Raspell Directory.

cd /Library/Ruby/Gems/1.8/gems/raspell-1.1/ext

make clean
ruby extconf.rb

Now, open the makefile remove all the occurences of ‘-arch ppc’ and save the makefile.

Now issue,

make
sudo make install

Now, you should have Raspell.

Leave a response

Your response:

Categories and Tags

Advertising