-
Notifications
You must be signed in to change notification settings - Fork 80
Installation
Can someone write installation instructions for Linux? Please specify distro and version, how to install the necessary libs and gems, etc. Thanks!
You should have GCC 4.3+ to install the packages. Install Xcode from the Mac App Store and the command line applications [need more information here]. Now, install homebrew and the necessary formulas:
- Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
- Install gtk+
brew install gtk+
- Install gsl
brew install gsl
- Install gtksourceview
brew install gtksourceview
- Install librsvg
brew install librsvg
- Install imagemagick
brew install imagemagick
There are some errors you might run into during the above process:
-
If gtk+ fails to install, try to set the LANG environment variable to "en_US.UTF-8" and run it again.
export LANG="en_US.UTF-8"
-
If librsvg fails to install, try to set write permission to the following file(path might change based on current version that you're installing)
chmod +w /usr/local/Cellar/gdk-pixbuf/2.23.5/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
-
The gsl (1.14.7) gem can fail to install due to the Homebrew library being on version 1.15. To resolve this, uninstall the library (
brew uninstall gsl
) and edit the formula (brew edit gsl
) to download version 1.14. The md5 hash will need to be modified to bee1a600e4fe359692e6f0e28b7e12a96681efbe52
to match the 1.14 download. -
If you have problems related to
imagemagick
after having installed it via the above method, use the following command:brew install imagemagick --disable-openmp --build-from-source
, as said in #25 or originally in this Stackoverflow question. -
There are some problems with
gtksourceview
in Mountain Lion due to the system having dropped some .pc files from/usr/lib/pkgconfig
related tolibxml2
. The solution found in issue #25 by @smackesey was to install it via homebrew withbrew install libxml2
and symlink the libxml2-0.pc file into the correct directory:
sudo ln -s /usr/local/Cellar/libxml2/2.9.0/lib/pkgconfig/libxml-2.0.pc /usr/lib/pkgconfig
This directs gtksourceview to the libxml version installed via Homebrew rather than the system version, which might cause problems. Please open an issue in the tracker if you find anything.
-
Clone the SciRuby repository
git clone https://github.com/SciRuby/sciruby.git
-
cd into it.
cd sciruby
-
Install bundler if you already don't have it
gem install bundler
-
Execute bundle install
bundle install
-
Execute the rake task
bundle exec rake newb