ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Job: Help to Install ChiliProject on OSX Server (Lion)

Added by Dan Cameron at 2011-12-13 07:53 pm

I'm running into problems getting my OSX server setup with ChiliProject so I can migrate from Redmine (on another server).

I'd like to pay someone to simply get the latest trunk of chiliproject running. I've already installed brew and rvm, the issue is getting the mysql gem installed.

Notes:
I'm okay with everything being removed (rvm, brew, mysql, etc.) and starting from a clean slate, this is a new system that has been designated just for this project (right now).
Here's the error I keep getting...

mini-lion:chiliproject sproutventure$ sudo env ARCHFLAGS="-arch x86_64" gem install --no-rdoc --no-ri  mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
Building native extensions.  This could take a while...

ERROR:  Error installing mysql:
    ERROR: Failed to build gem native extension.

        /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config
checking for mysql_ssl_set()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
    --with-mysql-config
/Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:435:in `try_link0'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:440:in `try_link'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:552:in `try_func'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:797:in `block in have_func'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:254:in `open'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:254:in `open'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
    from /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:796:in `have_func'
    from extconf.rb:50:in `<main>'

Gem files will remain installed in /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/mysql-2.8.1 for inspection.
Results logged to /Users/sproutventure/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

Like I said though, I'll pay to get this working; I'm at the point that I don't want to waste anymore time getting it setup.

You can email me at chili at sproutventure dot com


Replies (6)

RE: Job: Help to Install ChiliProject on OSX Server (Lion) - Added by Felix Schäfer at 2011-12-13 07:59 pm

I don't have the means to be paid "on my own", so I fear I can't provide you directly with a paid installation (I'd direct you to my employer, but I fear that'd be more hassle than necessary), and I don't have experience with OS X Server, but this error seems quite easy to fix.

2 things:

  • If you want to work on ruby 1.9.2, use the mysql2 gem, not the mysql one. The mysql gem isn't supported well on 1.9.2.
  • You will need the mysql development libraries, just brew install mysql. Even if you don't intend to use the brew-installed mysql (and it isn't started automatically by default, so no sweat here), it will provide the necessary header/library files the mysql2 gem install needs.

You're on the right path though, I don't think there's that much left to do :-)

RE: Job: Help to Install ChiliProject on OSX Server (Lion) - Added by Dan Cameron at 2011-12-13 08:18 pm

Thanks for the help, I did get mysql2 installed and it seemed fine up until I tried to populate the db. Here's the latest error, which is strange since even installing the mysql gem I get the error.

mini-lion:chiliproject sproutventure$ bundle update
Fetching source index for http://rubygems.org/
Using rake (0.9.2.2) 
Using activesupport (2.3.14) 
Using rack (1.1.2) 
Using actionpack (2.3.14) 
Using actionmailer (2.3.14) 
Using activerecord (2.3.14) 
Using activeresource (2.3.14) 
Using archive-tar-minitar (0.5.2) 
Using coderay (0.9.8) 
Using columnize (0.3.5) 
Using edavis10-object_daddy (0.4.3) 
Using i18n (0.4.2) 
Using json (1.6.3) 
Using ruby_core_source (0.1.5) 
Using linecache19 (0.5.12) 
Using metaclass (0.0.1) 
Using mocha (0.10.0) 
Installing mysql2 (0.2.18) with native extensions 
Using net-ldap (0.2.2) 
Using pg (0.9.0) 
Using rails (2.3.14) 
Using rdoc (3.11) 
Using ruby-debug-base19 (0.11.25) 
Using ruby-debug19 (0.11.6) 
Using ruby-openid (2.1.8) 
Using rubytree (0.5.3) 
Using shoulda (2.10.3) 
Using sqlite3 (1.3.5) 
Using bundler (1.0.21) 
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.
mini-lion:chiliproject sproutventure$ RAILS_ENV=production bundle exec rake db:migrate
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
mini-lion:chiliproject sproutventure$ 

RE: Job: Help to Install ChiliProject on OSX Server (Lion) - Added by Dan Cameron at 2011-12-13 08:35 pm

I should mention that I'm trying to get Passenger to work too, this is the new error message after installing mysql2.

Error message:
no such file to load -- mysql (MissingSourceFile)
Exception class:
PhusionPassenger::UnknownError

RE: Job: Help to Install ChiliProject on OSX Server (Lion) - Added by Felix Schäfer at 2011-12-13 08:43 pm

You need to specify mysql2 as the adapter in the database.yml instead of just mysql.

RE: Job: Help to Install ChiliProject on OSX Server (Lion) - Added by Dan Cameron at 2011-12-13 09:00 pm

Wonderful! That was it.

You have an amazon wishlist?

RE: Job: Help to Install ChiliProject on OSX Server (Lion) - Added by Felix Schäfer at 2011-12-13 11:02 pm

Great, and yeah, our docs seem to need some love :-/

Mmh, last updated long ago, so I'd say no, you can either just Donate to the project, or I'll send you my iTunes and paypal handles, I hope one works for you :-)

(1-6/6)