Topic: Install Errors

All,

I've been trying to install Rails and used the HOWTOs of:

http://www.blog.railshouse.com/2011/6/3 … ith-gemset
http://railsforum.com/viewtopic.php?id=40776
http://beacon.wharton.upenn.edu/learnin … ith-mysql/
http://www.web2linux.com/05/installing- … ucid-lynx/
https://help.ubuntu.com/10.04/servergui … rails.html
http://excid3.com/blog/installing-ruby- … ntu-10-04/

The closest I got was with:

http://excid3.com/blog/installing-ruby- … ntu-10-04/

But the last command in series of:

gem install mysql

Produces this output with errors and does not build the DB:

Building native extensions.  This could take a while...
Successfully installed mysql-2.8.1
1 gem installed
Installing ri documentation for mysql-2.8.1...
    No definition for next_result
    No definition for field_name
    No definition for field_table
    No definition for field_def
    No definition for field_type
    No definition for field_length
    No definition for field_max_length
    No definition for field_flags
    No definition for field_decimals
    No definition for time_inspect
    No definition for time_to_s
    No definition for time_get_year
    No definition for time_get_month
    No definition for time_get_day
    No definition for time_get_hour
    No definition for time_get_minute
    No definition for time_get_second
    No definition for time_get_neg
    No definition for time_get_second_part
    No definition for time_set_year
    No definition for time_set_month
    No definition for time_set_day
    No definition for time_set_hour
    No definition for time_set_minute
    No definition for time_set_second
    No definition for time_set_neg
    No definition for time_set_second_part
    No definition for time_equal
    No definition for error_errno
    No definition for error_sqlstate

Installing RDoc documentation for mysql-2.8.1...
    No definition for next_result
    No definition for field_name
    No definition for field_table
    No definition for field_def
    No definition for field_type
    No definition for field_length
    No definition for field_max_length
    No definition for field_flags
    No definition for field_decimals
    No definition for time_inspect
    No definition for time_to_s
    No definition for time_get_year
    No definition for time_get_month
    No definition for time_get_day
    No definition for time_get_hour
    No definition for time_get_minute
    No definition for time_get_second
    No definition for time_get_neg
    No definition for time_get_second_part
    No definition for time_set_year
    No definition for time_set_month
    No definition for time_set_day
    No definition for time_set_hour
    No definition for time_set_minute
    No definition for time_set_second
    No definition for time_set_neg
    No definition for time_set_second_part
    No definition for time_equal
    No definition for error_errno
    No definition for error_sqlstate

I assume this means missing config file or config file needs editing.

Please inform!

All help appreciated!

Thanks!

OMR

Re: Install Errors

What OS platform are you using?
What version of Rails are you truing to install?
Check out http://railscasts.com/episodes/310-gett … with-rails
The links that Ryan has are well worth looking at

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)

Re: Install Errors

jamesw wrote:

What OS platform are you using?
What version of Rails are you truing to install?
Check out http://railscasts.com/episodes/310-gett … with-rails
The links that Ryan has are well worth looking at

JamesW,

I'm on Ubuntu 10.04 LTS, and trying latest of Rails!

Oh acutally got it to work using apt-get install ruby, but is at v 1.8.7 and want to be at 1.9.3

Have source for 1.9.3 downloaded and writting install bash script of:

#! /bin/bash
# Script to Install Ruby

cd "/home/files/Installer Packages/Frameworks & Rad/Ruby/"
wget ftp://ftp.ruby-lang.org/ruby-1.9.3-p125.tar.gz
cd "/home/files/install_unpacks/unpack_ruby/"
tar xjvf "/home/files/Installer Packages/Frameworks & Rad/Ruby/ruby-1.9.3-p125.tar.gz"
cp /home/files/install_unpacks/unpack_ruby/ruby-1.9.3-p125/* /var/www/Frameworks/Ruby
cd /var/www/Frameworks/Ruby
./configure --prefix=/usr/local
sudo make && sudo make install

Not sure of the last 2 lines.  One HOWTO had a "setup.sh" install script in the source and looking for that to make sure I got all this right!

Thanks!

Re: Install Errors

use RVM to manage your rubies: http://beginrescueend.com/

Re: Install Errors

As per response from Javix, that railscasts link I pointed you to shows how to use rubenv or rvm - I prefer rvm

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)

Re: Install Errors

Javix wrote:

use RVM to manage your rubies: http://beginrescueend.com/

Javix,

RVM does not work,  already stated that! Is a pile of crap and error everywhere, does absolutely nothing, so why do you recommend using a pile of crap?

Re: Install Errors

Jamesw,

Since there is nothing at all that works with RVM, please never mention it again!

Thank you!

Re: Install Errors

RVM does not work,  already stated that!

Where? I didn't see mention of that anywhere in this thread.

RVM works fine. Please do not denegrate a solid, respected and viable tool without providing the hard facts in this manner as there are a lot of new comers to rails that read this forum and they might just decide not to use the best tool available.

If you would like to get rvm working then please feel free to state your problem and I'm sure someone will help solve it.
Just stating that it is crap is not good enough and you should know better. Be constructive OldMan so that others can learn from your problems.

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)

Re: Install Errors

When you are the right way up you will see the problem differently and you just might find the solution. http://www.bosin.info/g.gif

Re: Install Errors

Just wanted to second what Jamesw said about RVM. I'm using it on Ubuntu 11.10 and it works great. However, I did have some challenges getting it set up initially. I ran into a few errors, but thanks to Google I was able work through the errors. I'm glad I did, because it's very nice to be able to work in different Ruby/Rails versions and try out different things. For example, I have several books with tutorials that I've been working through, all with different versions of Rails. So it's nice to be able to set a custom version of Rails for each project.

Re: Install Errors

How to reformat?

Re: Install Errors

How to reformat?

Reformat what?

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)

Re: Install Errors

That's untested, but it should work.