Archive for the ‘how to fix the error…’ Category

‘xterm-256color’: unknown terminal type.

The following error popped up when I was accessing a Ubuntu EC2 instance from my MacOS X system: ‘xterm-256color’: unknown terminal type. To fix this error I needed to install ncurses-term via sudo apt-get install ncurses-term

YAML parsing errors in Rails 3.0.x application (couldn’t parse YAML)

I’ve just got this error in my Rails 3.0.7 application: Psych::SyntaxError (couldn’t parse YAML at line 289 column 14) To fix this I needed to add require ‘yaml’ YAML::ENGINE.yamler= ‘syck’ into my first two lines of the config/boot.rb

Running Apache Archiva on Debian Linux 64bit causes errors

I had some problems running Apache Archiva – the Maven repository management tool – on my Debian Linux 64bit system. The error I got when starting the standalone version via bin/archiva console was like this: apache-archiva-1.3.4/bin/./wrapper-linux-x86-32: No such file or directory What I needed to do to start the server was removing the 32bit versions: [...]

SugarCRM Inbound E-mail problem

I’ve just got the following error message while accessing the Inbound E-mail feature in SugarCRM: Inbound Email cannot function without the IMAP c-client libraries enabled/compiled with the PHP module To fix this error on my Debian server I’ve had to install the PHP IMAP module via apt-get install php5-imap

Fixing “use -source 5 or higher to enable generics” during Maven compilation

I just wanted to compile & assemble a Maven project using mvn assembly:assembly and got the following error: Compilation failure [...] (use -source 5 or higher to enable annotations) To fix this error I needed to add <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> to my pom.xml file.

`require’: no such file to load — readline (LoadError)

I got the following error when trying to start the ‘rails console’ in a Rails3/Ruby 1.9.2 project: `require’: no such file to load — readline (LoadError) The problem was that readline was not installed properly. To install it, I needed to go into the ruby sources. In my case they were located in the directory [...]

Creation of nested models in Rails3 failed with HashWithIndifferentAccess error

I just tried to create a Rails model which contained nested other models and got an HashWithIndifferentAccess error. I used accepts_nested_attributes_for in the parent model. To solve this problem the solution was to add an attr_accessible :MODELNAME_attributes for the child-model (MODELNAME) into the parent model. E.g. Parent model class ParentModel < ActiveRecord::Base has_one :child_model attr_accessible [...]

no such file to load — dispatcher

I updated to Rails 3 and tried to deploy the application using passenger. I’ve got the following error: no such file to load — dispatcher The thing was, that Passenger treats the Rails 3 application as an Rack application because of the config.ru file. To get it run again, you need to change the passenger [...]

uninitialized constant MysqlCompat::MysqlRes

I just had the following problem when trying to start a Ruby on Rails application on a fresh installation of Mac OS X Snow Leopard after I installed the mysql gem via gem install mysql: uninitialized constant MysqlCompat::MysqlRes I searched a bit and found a solution here. It was a problem with a buggy version [...]

/usr/bin/ld: cannot find -lperl

I just compiled ImageMagick and got the following error when trying to run a make install /usr/bin/ld: cannot find -lperl To fix this, I had to install Perl libraries via sudo apt-get install libperl-dev