Skip to content

Instantly share code, notes, and snippets.

@ocean90
Created December 31, 2011 15:43
Show Gist options
  • Save ocean90/1544377 to your computer and use it in GitHub Desktop.
Save ocean90/1544377 to your computer and use it in GitHub Desktop.
Compiling Compass.app on Mac OS X
Tutorial for compiling the Compass.app (http://compass.handlino.com/)
=====================================================================
Java installed?
java -version
Load jRuby (for example JRuby 1.6.5.1 Binary .zip)
http://jruby.org/download
Unzip jRuby to `/usr/local/`
Rename folder to `jruby`
Open Terminal and define the path for the current session, adding jruby to simplify the path calls
`PATH=/usr/local/jruby/bin:$PATH`
Installation of a gem (rawr) from jruby
`jruby -S gem install rawr`
Switch to Applications folder
`cd ~/Applications`
Create a clone from Github Repo
`git clone git://github.com/handlino/CompassApp.git "CompassApp"`
Switch to CompassApp folder
`cd CompassApp/`
Compile
`bin/build-all.sh`
Updating the App
===============
Define the path for the current session
`PATH=/usr/local/jruby/bin:$PATH`
Check for jruby updates
`jruby -S gem update`
Switch to CompassApp folder
`cd ~/Applications/CompassApp`
Get new files from Github Repo
`git pull`
Compile
`bin/build-all.sh`
Props MoOx
http://moox.fr/blog/compass-app-application-pour-compiler-css-sass-compass/
@anteprimorac
Copy link

On windows XP when i enter bin\build-all.sh, I get this:

C:\Documents and Settings\Ante Primorac\CompassApp>bin\build-all.sh
Welcome to Git (version 1.7.9-preview20120201)

Run 'git help git' to display the help index.
Run 'git help ' to display help for specific commands.
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rawr-1.4.5/lib/platform.rb:7: Use RbConfig i
nstead of obsolete and deprecated Config.
mkdir -p package/classes/java
javac -target 1.6 -cp lib/java/jruby-complete.jar:src -sourcepath src -d package
/classes/java src/org/rubyforge/rawr/Main.java
rake aborted!
Command failed with status (127): [javac -target 1.6 -cp lib/java/jruby-compl...
]

Tasks: TOP => rawr:bundle:app => rawr:jar => package/jar/compass-app.jar => pack
age/classes/java/org/rubyforge/rawr/Main.class
(See full trace by running task with --trace)

where I'm wrong?

Sory for my bad english :D

@falbertin
Copy link

I got it to work by using 'jruby -S rake rawr:bundle:all' in the compile step. Failed on Windows 7 x64 though (Lion worked), so your mileage may vary, but the point is to run the build from within jruby and not regular ruby.

@anteprimorac
Copy link

When I enter "jruby -S rake rawr:bundle:all" I get same error. Can you send me compailed .exe version of CompassApp?

@falbertin
Copy link

I think that would contravene the license. Sorry. :)

@hrnn
Copy link

hrnn commented Sep 9, 2012

Time ago i also compiled my own copy you can see almost all steps here http://hernan.in/im-beginning-with-compass

@inmedimptorolta
Copy link

As rawr has been deprecated, you can install it using:

jruby -S gem install rawr --source http://gems.neurogami.com

@lks128
Copy link

lks128 commented Nov 7, 2014

@anteprimorac, I believe were missing JDK on your system ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment