README instructions don't seem to work

2 views
Skip to first unread message

Rod

unread,
Oct 17, 2008, 6:06:51 PM10/17/08
to eXPlainPMT Users
Getting the latest tarball from Git and installing it doesn't work for
me. Problems:

1. Can't find anything called redcloth which the readme calls out as a
requirement

2. There is no config/database.yml, only the CruiseControl version

3.RAILS_ENV=production rake migrate gives

rake aborted!
Don't know how to build task 'migrate'

I tinkered with Rails about a year ago but have forgotten most of what
I knew, so I'm pretty much stuck at this point. Is eXPlainPMT ready
for non-Ruby experts to install, or should I stick with XPlanner?

John Wilger

unread,
Oct 17, 2008, 6:53:24 PM10/17/08
to Rod, eXPlainPMT Users
On Oct 17, 2008, at 3:06 PM, Rod wrote:

> 1. Can't find anything called redcloth which the readme calls out as a
> requirement

`sudo gem install RedCloth`

> 2. There is no config/database.yml, only the CruiseControl version

Just copy the CruiseControl version and edit to suit.

> 3.RAILS_ENV=production rake migrate gives

Try `RAILS_ENV=production rake db:migrate`. Documentation is a bit
outdated there.

> I tinkered with Rails about a year ago but have forgotten most of what
> I knew, so I'm pretty much stuck at this point. Is eXPlainPMT ready
> for non-Ruby experts to install, or should I stick with XPlanner?

It may not be quite there, but we'd certainly like to get it there. If
you get stuck on anything else, definitely post questions here. We'll
do our best to help you out. Documentation patches welcome!

--
Regards,

John Wilger

Rod McChesney

unread,
Oct 17, 2008, 7:20:54 PM10/17/08
to John Wilger, eXPlainPMT Users
Thanks for the quick reply! After a few more glitches it's up and running; I've included the relevant info inline below.

On Fri, Oct 17, 2008 at 3:53 PM, John Wilger <johnw...@gmail.com> wrote:
On Oct 17, 2008, at 3:06 PM, Rod wrote:

1. Can't find anything called redcloth which the readme calls out as a
requirement

`sudo gem install RedCloth`

OK, proper case helps. I do get the following with this, but it doesn't seem to hurt anything (this is Ubuntu Dapper, Ruby 1.8.4):

$ sudo gem install RedCloth
  Building native extensions.  This could take a while...
  ERROR:  Error installing RedCloth:
      ERROR: Failed to build gem native extension.

  /usr/bin/ruby1.8 extconf.rb install RedCloth
  extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
    from extconf.rb:1

  Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/RedCloth-4.0.4 for inspection.
  Results logged to /usr/lib/ruby/gems/1.8/gems/RedCloth-4.0.4/ext/redcloth_scan/gem_make.out
 


2. There is no config/database.yml, only the CruiseControl version

Just copy the CruiseControl version and edit to suit.

Here's my cheatsheet for this:

Copy config/database_cruise.yml to config/database.yml
Add a production target, and include the proper mysql socket location for Ubuntu:
common: &common
  adapter: mysql
  username: explainpmt
  password: explainpmt
  encoding: utf8
  socket: /var/run/mysqld/mysqld.sock
production:
  <<: *common
  database: explainpmt
 
(see http://hervalicio.us/blog/2007/07/07/no-such-file-or-directory-tmpmysqlsock/)



3.RAILS_ENV=production rake migrate gives

Try `RAILS_ENV=production rake db:migrate`. Documentation is a bit outdated there.

Yup, that works.

John Wilger

unread,
Oct 17, 2008, 7:49:41 PM10/17/08
to explainp...@googlegroups.com
On Oct 17, 2008, at 4:20 PM, Rod McChesney wrote:

> OK, proper case helps. I do get the following with this, but it
> doesn't seem to hurt anything (this is Ubuntu Dapper, Ruby 1.8.4):
>
> $ sudo gem install RedCloth
> Building native extensions. This could take a while...
> ERROR: Error installing RedCloth:
> ERROR: Failed to build gem native extension.
>
> /usr/bin/ruby1.8 extconf.rb install RedCloth
> extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
> from extconf.rb:1
>
> Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/
> RedCloth-4.0.4 for inspection.
> Results logged to /usr/lib/ruby/gems/1.8/gems/RedCloth-4.0.4/ext/
> redcloth_scan/gem_make.out

Not sure what the answer is there. You might try asking on the Ruby
mailing list, since this sounds like an issue with your Ruby
installation.

--
Regards,

John Wilger

Reply all
Reply to author
Forward
0 new messages