Archive for April, 2008
Thursday, April 24th, 2008
git: fatal error: `chdir’ failed: permission denied.
Problem
Trying to use the heroku gem to clone a project and do local modifications I got the following error:
git: fatal error: `chdir’ failed: permission denied.
Solution
It turns out that in Mandriva, when using:
sudo urpmi git
what gets installed is the ‘GNU Interactive Tools’ that has nothing to do with the git version control system.
So make sure you [...]
No Comments » - Posted in linux, ruby on rails by kosmas
Wednesday, April 23rd, 2008
Ext.ux.grid has no properties error
Problem
Trying to use ExtJS with RubyOnRails on Heroku, gives the following error and a blank page in Firebug.
Ext.ux.grid has no properties
…
Line 141
Solution
In Heroku, you will probably have to manually upload the files from the ExtJS library, as well as the ext_scaffold plugin.
When you do that, two files that ext_scaffold needs, and which they should be [...]
2 Comments » - Posted in ruby on rails by kosmas
Monday, April 21st, 2008
Converting Paradox tables to MySQL sql in Linux
Problem
You want to convert some legacy tables created in Paradox (.db, .px) to another format so you can use it in MySQL.
Solution
Download the px tools from here.
Follow the instructions, in the INSTALL file after you untar the file.
You should have to do the usual three step linux installation:
configure
make
sudo make install
Afterwards to make sure that the [...]
No Comments » - Posted in linux by kosmas
Friday, April 11th, 2008
Installing sqlite3-ruby in Mandriva and Rails 2.0.2
Problem
After upgrading to Rails 2.0.2 when trying to install the sqlite3-ruby gem got the following error:
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb install sqlite3-ruby
checking for sqlite3.h… no
make
make: *** No rule to make target `ruby.h’, needed by `sqlite3_api_wrap.o’. Stop.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/ext/sqlite3_api/gem_make.out
Solution
In [...]
No Comments » - Posted in linux, ruby on rails by kosmas
Tuesday, April 8th, 2008
Upgrading to Rails 2.0.2 problems/solutions
Problem
Upgrading from Rails version 1.2.3 to version 2.0.2.
Following the suggestion in DH’s weblog here when using sudo gem install rails -y, it gets the trunk version of rails which at the time was 2.0.2.9216.
This causes a few problems and breaks a few more things.
Solution
In order to get back to the latest stable version, you have [...]