Bill,
First, I really appreciate your help. At the risk of sounding naïve,
in response to Dheeraj’s post that “You need to add it to the gemfile and run
the bundle command.” How do I do that? I guess this is where I need to be
more specific about where I left off. Ok, the tutorial that I mentioned here:
http://blog.sudobits.com/2012/05/02/how-to-install-ruby-on-rails-in-ubuntu-12-04-lts/
uses the Webrick server. For some reason, when I started that server and then
tried to view the page using port 3000, it did not connect. Therefore, I had
my VirtualBox setup with Ubuntu and using Apache2 on port 8080, which I could
get to from my host OS. I wasn’t seeing that test app described at the above
link, until I went into the folder http://localhost:8080/test_app/
Of course, now, for some reason, I cannot get into any of the apps that I
just installed hours ago. I get Not Found at the test_app link that I included
just above. I can go to the http://localhost:8080/ uri and see some web
content that was put there. However, the test_app that worked fine just a
little while ago, is not working now. Had it been working I would have said
that the last problem to address is creating an application with mysql support.
It is frustrating that my problem is now apparently related to my Linux
installation on my system and I cannot address the other issues of moving on to
learning RoR.
1) test_app from the tutorial:
http://blog.sudobits.com/2012/05/02/how-to-install-ruby-on-rails-in-ubuntu-12-04-lts/
**was** working fine with apache2, not with Webrick. Unlike in that tutorial,
I couldn’t go to just http://localhost:8080 or localhost:3000, I had to add the
directory in my browsers address bar, then I think I had to go into public.
2) How are you installing the mysql2 gem? Are you using Bundler? In the
above referenced tutorial, I didn’t need mysql. However, when I added that to
the command line:
rails new simple_cms –d mysql
I got the message: “An error occurred while installing mysql2 (0.3.11), and
Bundler cannot continue. Make sure that ‘gem install mysqsl2 –v ‘0.3.11’`
succeeds before bundling. So, I then enter
gem install mysql2 –v ‘0.3.11’
Then I try my install again... when asked to continue and over-write, I say Y.
Then I get the same error.
What is curious is that if I include the ` after the gem install mysql –v
‘0.3.11’ it gives me a different prompt.
3) Is the gem specified in the Gemfile? Were you able to rake db:migrate or
is that where you're having your problem?
I don’t know what the latter means. I can look at the Gemfile and it has this
in it:
source :rubygems
gemspec
I know it is somewhat off topic, but I have to somehow figure out why the apps
I created previously, php and the RoR app (without the msyql support) are not
now accessible from a browser.
Thanks,
Bruce
From: Bill Walton
Sent: Sunday, September 2, 2012 7:29 AM
To: [email protected]
Subject: Re: [Rails] Help getting started: Newbie: Windows and Rails
Hi Bruce,
On Sun, Sep 2, 2012 at 6:00 AM, Bruce Whealton <[email protected]> wrote:
<snip>
Anyway, I keep going in circles. I get a message saying that I need to
install gem msyql2 which I do and it reports back with no error and so I try
again to install the app with the rails command and I get the same error.
I took a quick look at that tutorial, and if that's all you did you should be
getting the index.html file that Rails installs (the tutorial left out the part
where it tells you that you have to delete it). If you did that, then you're
into the app itself and your problem description doesn't say much about what
you did in addition to the tutorial.
So.... need a little more info. How are you installing the mysql2 gem? Are
you using Bundler? Is the gem specified in the Gemfile? Were you able to
rake db:migrate or is that where you're having your problem?
Best regards,
Bill
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.