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 …

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.

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 them to ~/.profile or ~/.bash_profile

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.

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 to your ~/.profile or ~/.bash_profile (The shell may use either of this.)

export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0

Now save and reinstall the things(Changes to ~/.profile do not take effect on the current shell session. So close and open a new terminal). Everything will go well.
This is done so that if you have utilities or libraries …

Page 36 of 46« First...«3435363738»...Last »

Categories and Tags

Advertising