how to install ror on windows 7

Hi all, i want to learn ruby on rails.i am using window7 . I installed ruby 1.9.2 p0 in “C:\ruby” using one click

installer.and then installed rails using the command “gem install rails”. and rails get installed successfully. After that i tried to build a sample application.so i created a new folder in c like “c:\venkat” and i moved to that

folder in the command prompt and i created an application venu by giving the command “c:\venkat rails new venu” . And now i came to know that i have to start the server at this point of time

and i tried to start the server usting the command “rails server” but after entering this command i got an error like " the program cont start because sqlite3.dll is missing from your computer.try

reinstalling the program to fix this problem." so i downloaded sqlite3.dll and pasted it in the C:\windows\system32" and tried once again to start the server. But now i got a new error like "The rocedure entry point sqlite3_backup_finish could not be loacated in

the dynamic link library Sqlite3.dll"

what i have to do next? pls help…

Try putting the sqlite3 files in c:\ruby\bin (there should be def, dll and exe (although I think only the dll and exe files are needed ) Also just be sure that c:\ruby\bin is correctly pathed!)

If you prefer using MySql, this came up via rubyflow this morning. http://www.celticwolf.com/blog/2010/11/03/installing-ruby-on-rails-on-windows/ HTH, Dave

If you don't install the DevKit after you install Ruby, you won't get very far. It's only a matter of time, and a short one it will be, before you need to install a gem that require compilation and thus need DevKit. Might as well do it now.

http://github.com/oneclick/rubyinstaller/wiki/Development-Kit

Then you have the perfect environment to install VirtualBox and the VirtualRails development machine (Google will point you to both).

Please, please, please... if you're starting out with Rails, start with a *nix environment. It will be a lot easier for you to follow the majority of tutorials, for things to work, and to gain the best help from lists like this.

Rails *does* run on Windows (FWIW I'm doing some work at the moment on a "legacy" Rails 1.1.6 app running on Windows 2000 :-/ ... but it's a pain in the proverbials! Avoid it if possible; and as a newcomer to the platfform, you've no reason to struggle to get it working in Windows.

Adding to what micheal said , if you are intimidated by *nix you can use a mac if you have access to one.

ok, i got the same error and got verry frustrated.. i had only the .dll and the .exe sqlite3 files but not the .def one.. i just downloaded the .def too and worked like a charm :slight_smile:

Hi Venkata and others,

I start creating a free Rails course material few months ago, but Rails 3 was released before I finished it.

I will be re-factoring it to Rails 3 soon, but since many Windows users request that kind of stuff, I have published it here:

http://www.public.traineronrails.com/guides/rails/pages/01-rails_install.htm

I think you can easily follow it but update when necessary (as I have done myself) to Ruby 1.9.2 and Rails 3.0.1.

Hope it helps

Go to here and download the pre-compiled "sqlitedll" package. Unzip it to your "Ruby\bin" directory

http://www.sqlite.org/download.html

Allen Cook

Hi Romeu,

I insist: everything you need is detailed here:

http://www.public.traineronrails.com/guides/rails/pages/01-rails_install.htm

You can easily follow it updating when necessary (as I have done myself) to Ruby 1.9.2 and Rails 3.0.1.

Hope it helps

Thanks Marcos,

But I'm a bit confused over the list at the beginning that mentions Mongrel 1.1.6 beta ? I have been unable to get Mongrel going and have been 'Stuck' on Webrick. So even though Mongrel is mentioned it is not included in your instructions :frowning: Kind Regards, Dave

Hi Davo,

The mongrel item was covered in the next item of that material, but it was for Rails 2.3.6.

With the retirement of Zed Shaw and the current Rails 3 version, for developments purpose Webrick will do the job pretty well.

In a real production server You will find many alternatives better then both.

All the best.

MarcRic wrote in post #961698:

Hi Davo,

The mongrel item was covered in the next item of that material, but it was for Rails 2.3.6.

With the retirement of Zed Shaw and the current Rails 3 version, for developments purpose Webrick will do the job pretty well.

In a real production server You will find many alternatives better then both.

Of course, in a real production server, you shouldn't be using Windows...

All the best.

-- MarcRic

Best,

Davo,

When I say "alternatives better then both", I mean other HTTP Web servers which is the subject now.

The O.S. of the server is just a matter of taste or a decision already made for you.

I have my personal choices concerning O.S. for servers (Servers in general not only for Web Servers), but at work that is a corporate decision, which involves not only technical, but political and commercial decisions, and currently they are under Windows O.S.

So, my general answer to those that are simply "against Windows" is: stay out of the IT corporate business. Do only your personal choice stuff with the resources you can afford, because in the corporate industry, some decisions are made for you, not by you. And if you play the game you will follow their rules not yours.

The origins of the Trainer On Rails site is an effort to prove that "the Windows users minority" can develop cool stuff using Ruby on Rails in a productive way under Windows, apart from which Server's O.S. will support the application in the end.

Regards.

MarcRic wrote in post #961715:

Davo,

When I say "alternatives better then both", I mean other HTTP Web servers which is the subject now.

The O.S. of the server is just a matter of taste or a decision already made for you.

Not necessarily. Many of us have significant control over that.

I have my personal choices concerning O.S. for servers (Servers in general not only for Web Servers), but at work that is a corporate decision, which involves not only technical, but political and commercial decisions, and currently they are under Windows O.S.

So, my general answer to those that are simply "against Windows" is: stay out of the IT corporate business.

Excuse me? I'm quite happily working in a corporate IT job. I still hate Windows.

Do only your personal choice stuff with the resources you can afford, because in the corporate industry, some decisions are made for you, not by you. And if you play the game you will follow their rules not yours.

Depends. We're using Rails (on Linux) with MS SQL (on Windows). I can live with that because I don't ever really have to touch the Windows box.

OTOH, I would have little hesitation turning down a Rails dev job where I was forced to use either a Windows server or a Windows development computer. I'm quite happy to refuse to play by "their" rules if those rules make no sense.

The origins of the Trainer On Rails site is an effort to prove that "the Windows users minority" can develop cool stuff using Ruby on Rails in a productive way under Windows, apart from which Server's O.S. will support the application in the end.

Oh, I know you *can*. I just don't see why it's worth the bother.

Regards.

-- MarcRic www.marcric.com http://marcricblog.blogspot.com/ http://www.traineronrails.com/ http://groups.google.com.br/group/riorubyrails

Best,

Marnen wrote:

Oh, I know you *can*. I just don't see why it's worth the bother.

It is YOUR opinion.

I'm really tired of this kind of endless and useless discussions.

I only answered a topic named: "how to install ror on windows 7", which is MY interest.

I'm trying to keep the focus on the original O.S. of this thread.

Be happy with YOUR development environment.

I am with mine.

Bye.

MarcRic wrote in post #961927:

Marnen wrote:

Oh, I know you *can*. I just don't see why it's worth the bother.

It is YOUR opinion.

I'm really tired of this kind of endless and useless discussions.

Then don't prolong them by responding.

Best,

Marnen wrote:

Oh, I know you *can*. I just don't see why it's worth the bother.

It is YOUR opinion.

I'm really tired of this kind of endless and useless discussions.

It is not necessarily useless, it was just such a discussion that persuaded me to try Ubuntu, and I have never regretted it.

Colin

Colin,

I have done my tests on Ubuntu (and many others, like OpenSuse; RedHat; Gentoo; Debian; a local distribution called Kurumin which is a very clever one), I'm not particularly a Windows fan.

I just have used it for so many years at work (in my case I have no control, it has been always a corporate decision), and at home (it was the average choice 3 decades ago), that I feel much more comfortable with it then the others.

The same way I believe Windows users can be productive in Ruby on Rails development. I firmly believe in the free/open source principles.

That is the reason, I will never ever change Windows for OS/X, if I have to change from Windows, Ubuntu (or any counterpart) will be MY choice, because these are MY principles.

Could you please, point me a Linux forum for Dummies like me?

This is a Ruby on Rails forum, and this is a Windows specific thread...

I have a few Dumb questions about Linux to make before my next tries on Ubuntu or any other Linux distribution.

All the best.

Colin, [...] That is the reason, I will never ever change Windows for OS/X, if I have to change from Windows, Ubuntu (or any counterpart) will be MY choice, because these are MY principles.

Had you quoted me inline rather than top posting you would have seen that I was in no way suggesting that anyone should change from Windows if they do not wish to, merely pointing out that a discussion like this is not necessarily useless as you suggested.

Could you please, point me a Linux forum for Dummies like me?

I thought this was a Windows specific thread :slight_smile: ubuntu-users Info Page helped me a lot and continues to do so. See also http://ubuntu-manual.org/

This is a Ruby on Rails forum, and this is a Windows specific thread...

I think it is entirely reasonable whenever anyone asks how to install Ruby on Windows ( which is the thread topic) that they be made aware of the alternatives, in case they were not so aware. I agree that detailed discussions of the pros and cons should be in a separate thread however. It is interesting note that, as far as I can see, the OP has not responded even to the help that was offered with installing on Windows, which suggests he was not that bothered in the first place and likely has no objection to the thread being hijacked.

Colin