Assignment 0: Setting Up Your System
In this assignment, you will set up your computer with Ruby, RubyGems, Ruby on Rails, Sqlite, and Mongrel.
Read through this, and then see at the very end a checklist of what you need to submit
You must have the following versions:
- Ruby 1.8.6 (1.8.5 and 1.8.7 are ok, but we much prefer 1.8.6; no 1.9!)
- RubyGems 1.2 (1.1.1 is ok)
- Ruby on Rails 2.1.1
- Sqlite 3.4.0 or later
- The Sqlite3 Gem, version 1.2.4 or 1.2.3 (”gem install sqlite3-ruby” and see below)
- Mongrel 1.1.5 (after everything else is set up, do “gem install mongrel”)
Installation Tips
Operating Systems
- Windows: AWDR recommends InstantRails, which is fine.Another way to do it is to use the Ruby One-Click Installer (http://rubyinstaller.rubyforge.org/wiki/wiki.pl?RubyInstaller) and then install the rest with RubyGems (e.g., gem install rails, gem install sqlite3-ruby, gem install mongrel, etc.).Finally, it this mostly do-it-yourself mode, you will need to install sqlite3 — this screencast is decent: http://blip.tv/file/48664.
- Mac OSX: Follow the instructions in AWDR.
- Linux: Follow the instructions in AWDR.
RubyGems
RubyGems is the Ruby package manager and deployment system. It provides for loading software packages into your Ruby system so that you can use them in your own work. Rails itself is delivered as a Gem.
In the typical case, you type
gem install <package>
where package is the name of the package you want. In some cases you will be given a list of versions and operating systems — try to pick a recent version for your operating system (Windows is MSWin32). On the Mac and Linux, you should be the superuser when you use gem.
On occasion, the various installers may leave the RubyGems system in a lower version than we’d like. To update the RubyGems system to the latest version, do
# On the Mac and Linux, run following as su or use sudo gem update --system # # On some systems, you may only get up to 1.1.1, and will have to additionally: gem install rubygems-update update_rubygems
(For more information on getting to the latest version of RubyGems, see http://blog.segment7.net/articles/2008/06/21/rubygems-1-2-0.
Sqlite3
If you don’t use an all-in-one setup such as “Instant Rails” you will probably have to install Sqlite3 yourself. The installers are here: http://www.sqlite.org/download.html. On Linux and OS X, you may be able to use your system package manager (apt-get, aptitude, Darwin Ports, etc.).
On Windows, you will need both the sqlite-3_6_2.zip AND the sqlitedll-3_6_2.zip downloads. The contents of these two ZIPs should go in the same place, say, C:\Sqlite-3_6_2
After you’ve installed and/or placed the unzipped files in the proper place according to the instructions, you may have to add the directory to your path. On Windows (approximately): Control Panel / System / Advanced tab / Environment Variables button / System variables / Pick “Path” and edit, and then add the path preceded by a semi-colon (;C:\Sqlite3 or wherever you put it). On OS X and Linux, you should add the path in your .bash_profile or a similar file.
Sqlite3 Gem
In the typical case, you should be able to do:
gem install sqlite3-ruby
Some report that on Windows XP, there are problems getting the latest version. If need be, try version 1.2.3:
gem install --version 1.2.3 sqlite3-ruby
If you have problems with your setup, post comments here. If you have a laptop and need help getting set up, bring your laptop to section.
Here’s a little program that will attempt to load the different components and print out the version of each; you may find it useful for analyzing your system and we’d like you to provide the output as a part of your submission. Click “View Plain”, then copy the code to your clipboard, and then into a file called “versions.rb”; then you sould be able to type ruby versions.rb.
def myrequire(r)
require r
rescue Exception => e
puts "require failed: #{e}"
end
def check_sqlite3
tempname = "test.sqlite#{3+rand}"
db = SQLite3::Database.new(tempname)
puts "And . . . Connect to Sqlite says version is: #{db.execute('select sqlite_version()') }"
db.close
File.unlink(tempname)
end
myrequire 'rubygems'
myrequire 'initializer'
myrequire 'mongrel'
myrequire 'sqlite3'
puts "----- Software version check at #{Time.now}\n\n"
[
{ :name => 'Ruby', :version => 'RUBY_VERSION' },
{ :name => 'RubyGems', :version => 'Gem::RubyGemsVersion' },
{ :name => 'Rails', :version => 'Rails::VERSION::STRING' },
{ :name => 'Mongrel', :version => 'Mongrel::Const::MONGREL_VERSION' },
{ :name => 'Sqlite', :version => '`sqlite3 -version`' },
].each do |component|
puts "#{component[:name]}: #{eval(component[:version]) rescue 'Exception: %s' % $!.message}"
end
check_sqlite3 rescue 'Sqlite3 check: Exception: %s' % $!.message
puts `gem list`
How to Submit this Assignment
Once you have everything set up, go to the command-line prompt, and change your directory to a temporary directory. Then type
rails assn0
Then cd into that directory, and type:
ruby script/server
You should see something like the following:
jgnmbair:assn0 jgn$ script/server => Booting Mongrel (use 'script/server webrick' to force WEBrick) => Rails 2.1.1 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... ** Rails loaded. ** Loading any Rails specific GemPlugins ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload (without restart). It might not work well. ** Mongrel 1.1.5 available at 0.0.0.0:3000 ** Use CTRL-C to stop.
Now browse to http://localhost:3000 — You should see something like this:

Click “About your application’s environment.” We want a screenshot like the following:

Checklist for Submission
- Make your screenshot, and save it as JPG or PNG. Base the file name on your own name, e.g., john_g_norman.jpg
- Paste into your e-mail the output from the versions.rb program above.
- Type the following into irb, and determine the secret message:
"94G5B>2!W87,@8W)E871E9\"!B>2!-871Z+@``\n".unpack('u*')[0] - E-mail the screenshot, the output from versions.rb, and the secret message to your TA Sunday, Oct. 5 Sep. 27 (for the legalistic, and for those in different timezones, please get assignments in by 4 AM EST the following day; e.g., in this case, by Monday, Oct. 6 Sep. 28, 4 AM EST).
blog comments powered by Disqus
Add New Comment
Viewing 65 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
C:\Ruby\bin>versions.rb
require failed: 127: The specified procedure could not be found. - Init_sqlite3./sqlite3.dll
----- Software version check at Tue Sep 23 14:41:20 -0400 2008
Ruby: 1.8.6
RubyGems: 1.2.0
Rails: 2.1.1
Mongrel: 1.1.5
Sqlite: 3.6.3
*** LOCAL GEMS ***
actionmailer (2.1.1)
actionpack (2.1.1)
activerecord (2.1.1)
activeresource (2.1.1)
activesupport (2.1.1)
cgi_multipart_eof_fix (2.5.0)
fxri (0.3.6)
fxruby (1.6.16)
gem_plugin (0.2.3)
hoe (1.7.0)
hpricot (0.6)
log4r (1.0.5)
mongrel (1.1.5)
ptools (1.1.6)
rails (2.1.1)
rake (0.8.2)
ruby-opengl (0.60.0)
rubyforge (1.0.0)
sqlite-ruby (2.2.3)
sqlite3-ruby (1.2.3)
test-unit (2.0.0)
win32-api (1.2.0)
win32-clipboard (0.4.4)
win32-dir (0.3.2)
win32-eventlog (0.5.0)
win32-file (0.5.5)
win32-file-stat (1.3.1)
win32-process (0.5.9)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.4)
windows-pr (0.9.3)
I placed both the sqlite3.dll and the sqlite3.exe into the ruby/bin directory and installed the gem without issue so I'm unsure why this error is occurring. I would greatly appreciate any suggestions or help anyone might have.
Do you already have an account? Log in and claim this comment.
0. If you are local and you're on a laptop, bring it to section.
1. What happens when you type "sqlite3" into the DOS prompt? Does that work?
2. Review the screencast, and consider installing Sqlite3 the way it is done there. Incidentally, there is also a .def file -- did you put that in ruby/bin as well? In any case, I think you'll be happier in the long run if you put sqlite3 in its own directory and change your path (see the screencast).
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Thanks for your help!
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Windows? OSX? Linux? Help us out!
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
C:\Documents and Settings\floya\Desktop\Harvard\CSCI E-168 Fall 2008\Ruby\bin>
gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
C:/Documents and Settings/floya/Desktop/Harvard/CSCI E-168 Fall 2008/Ruby/bin/ruby.exe extconf.rb install sqlite3-ruby
'C:/Documents' is not recognized as an internal or external command,operable program or batch file.
Gem files will remain installed in C:/Documents and Settings/floya/Desktop/Harva
rd/CSCI E-168 Fall 2008/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.
Results logged to C:/Documents and Settings/floya/Desktop/Harvard/CSCI E-168 Fall 2008/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out
I followed all instructions from the video, still no positive results. Any suggestions to solve this problem? Thanks.
Do you already have an account? Log in and claim this comment.
(1) I say about, if you have issues with the sqlite3-ruby gem, try an earlier version:
gem install --version 1.2.3 sqlite3-ruby
(that's two dashes)
(2) If it still doesn't work: What is very very likely to be happening is that something is objecting to the spaces in the path.
I would strongly suggest that you install everything at the root. I.e., Ruby should be in C:\Ruby, Sqlite3 in C:\sqlite3, etc.
John
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
And . . . Connect to Sqlite says version is: 3.6.2
versions.rb:33:in ``': Exec format error - gem list (Errno::ENOEXEC)
from versions.rb:33
Anyone else get this error ?
Do you already have an account? Log in and claim this comment.
As C&C Music factory would say "things that make you say hmmmm" !
Do you already have an account? Log in and claim this comment.
# yum install gcc
# yum install ruby-devel
ruby-devel includes the 'ruby.h' file which was preventing my proper installation of Mongrel and FastThread .
[mmm.lkjlkj.net:~] # grep -i ruby rpm.list.txt
rubygems-0.9.4-1.fc8.noarch
ruby-ri-1.8.6.230-4.fc9.i386
ruby-irb-1.8.6.230-4.fc9.i386
ruby-libs-1.8.6.230-4.fc9.i386
ruby-1.8.6.230-4.fc9.i386
ruby-rdoc-1.8.6.230-4.fc9.i386
ruby-devel-1.8.6.230-4.fc9.i386
[mmm.lkjlkj.net:~] #
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
I had to install a couple of extra packages to get mine working:
$ sudo apt-get install ruby1.8-dev
$ sudo apt-get install rails
Also, I had to run "rails" with a special argument to force it to use sqlite3. By default, it tried using MySQL.
$ rails -D sqlite3 assn0
Hope this helps...
Do you already have an account? Log in and claim this comment.
rails -v
sudo gem -v
Do you already have an account? Log in and claim this comment.
RubyGems version 1.1.1
Rails version 2.0.2
Do you already have an account? Log in and claim this comment.
gem update rails
Then new apps should get Sqlite3 not MySQL.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
-----------------------------------------------------------------------
mymachostname$ sudo gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install sqlite3-ruby
can't find header files for ruby.
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out
-----------------------------------------------------------------------
SOLUTION: I fixed it after I found this similar error in the Ruby Forums:
http://railsforum.com/viewtopic.php?id=22116
After installing Xcode, it magically worked. Beware that Xcode is a 1GB DVD sized download. Also, I had to register for an Apple Developer account to download.
Another note worth mentioning: AWDR says to go to http://darwinports.com/install/ to install darwin ports. However, the site has been down for a few days and now it's back online, but the downloads are still not working. So I may have resolved it quicker with darwin ports, but it's still not available.
I still think Xcode was worth it since it's in the list of IDE's in AWDR. I'm gonna give it try along with the other ones.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
C:\Ruby\rails_apps>gem update sqlite3-ruby
Updating installed gems
Updating sqlite3-ruby
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
C:/Ruby/ruby/bin/ruby.exe extconf.rb update sqlite3-ruby
checking for fdatasync() in rt.lib... no
checking for sqlite3.h... no
nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in C:/Ruby/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.
Results logged to C:/Ruby/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out
C:\Ruby\rails_apps>
Do you already have an account? Log in and claim this comment.
- On the syllabus it says: Sunday, Oct. 5: Assignment 1 (Ruby One-Liners) due and there is no date for Assignment 0
- On the assignment 0 page it says due Sunday, Oct. 5
- On the assignment 1 page it says due Sunday night, Oct. 19.
So I just want to be sure. Do I hand in BOTH assignments 0 & 1 on Oct 5?
Thanks!
--Ana
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
--Ana
Do you already have an account? Log in and claim this comment.
On Windows XP, with Service Pack 3:
C:\blahblahblah>gem install mongrel
ERROR: While executing gem ... (Zlib::BufError)
buffer error
Is there something else I should be doing?
Do you already have an account? Log in and claim this comment.
I had great difficulty with the Zlib::BufError problem. It would even happen running โgem update โsystemโ a second time.
Finally I uninstalled everything to start again (remembering to also delete the .gem directory in my windows home directory "\Documents and Settings\myname").
The solution that worked for me was to reboot after each and every gem update operation. I donโt know why that worked but it did (and nothing else had). This problem is discussed extensively on the web but thereโs no universal solution.
Do you already have an account? Log in and claim this comment.
I didn't have to uninstall anything. I merely shut down my system on Friday, and after booting this evening, when I tried installing the mongrel gem again, it installed with no problems at all.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
C:\>gem --version
1.2.0
The problem seems to have been the one DavidLo reports, below.
Do you already have an account? Log in and claim this comment.
AWDR does not mention updating Mongrel.
Should I do
gem update Mongrel
or
gem install Mongrel
I proceed with the assignment, and it seems to work. So, I don't know if I should leave it as it is.
Thanks,
Do you already have an account? Log in and claim this comment.
Nice pseudonym.
Do you already have an account? Log in and claim this comment.
On Linux... inadvertently installed an older version of rails. Trying to update was a problem, as gem was complaining about gem_runner.
I had to add "require 'rubygems/gem_runner' to the /usr/bin/gem script. Allowed me then to install the correct rails version, with no gem_runner complaints. All working now. Posting in case anyone encounters the same problem.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
C:\>ruby versions.rb
----- Software version check as Thu Sep 18 09:51:45 -0400 2008
Ruby: 1.8.6
RebyGems: 1.2.0
Rails: 2.1.1
Mongrel: 1.1.5
Sqlite: 3.6.2
And . . . Connect to Sqlite says version is: 3.6.2
versions.rb:33:in ''':Exec format error - gem list <Errno::ENOEXEC>
from versions.rb:33
C:\>
Please assist.
Do you already have an account? Log in and claim this comment.
gem list
from the command prompt?
Do you already have an account? Log in and claim this comment.
Sqlite: 3.6.2
And . . . Connect to Sqlite says version is: 3.6.2
versions.rb:33:in ''':Exec format error - gem list <Errno::ENOEXEC>
from versions.rb:33
When I type in
gem list
then I get the following:
C:\>gem list
*** LOCAL GEMS ***
actionmailer (2.1.1)
actionpack (2.1.1)
activerecord (2.1.1)
activeresource (2.1.1)
activesupport (2.1.1)
cgi_multipart_eof_fix (2.5.0)
fxri (0.3.6)
fxruby (1.6.12)
gem_plugin (0.2.3)
hpricot (0.6)
log4r (1.0.5)
mongrel (1.1.5)
rails (2.1.1)
rake (0.8.2, 0.7.3)
rubygems-update (1.2.0)
sources (0.0.1)
sqlite3-ruby (1.2.3)
win32-api (1.0.4)
win32-clipboard (0.4.3)
win32-dir (0.3.2)
win32-eventlog (0.4.6)
win32-file (0.5.4)
win32-file-stat (1.2.7)
win32-process (0.5.3)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.0)
windows-pr (0.7.2)
C:\>
Do you already have an account? Log in and claim this comment.
thanks
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
I cannot execute the puts `gems list --local` command from irb command line; it errors out as in the upper right corner in the picture: Exec format error - gem list --local(Errno::ENOEXEC) from version.rb:33
I CAN type gem list at the system cmd line and get the output you see in green text (all my gems).
I have the correct environment paths (seen in picture), and I have closed the command windows and reopened them. Not sure what to do next. The error happens whether I run versions.rb in the SCiTe program or from the command line (ruby versions.rb).
Do you already have an account? Log in and claim this comment.
In order to execute
puts 'gem list --local' in a ruby program, I have to replace it with a slightly different version of the command....
puts 'gem.bat list --local' <--this works from within versions.rb
Interesting. I guess ruby doesn't play perfectly with windows - no execution bit to tell it what to do like in Linux? So it has to have the .bat extension? Ahhh, the mystery.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
puts 'dir'
fine, from within a ruby program or irb command line.
So specifically, a puts `gems....` is not working within ruby execution.
Do you already have an account? Log in and claim this comment.
gem list --local
into a batch file and named it gemlist.bat
in my versions.rb I changed the last line to
puts 'gemlist.bat'
and that works fine. So I guess windows can execute gems commands in windows space but ruby tools cannot.
Ideas appreciated :)
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
If you do go down this path, run 'gem uninstall rails' and pick the latest version. Then use the newly installed Gems to re-run 'gem update rails'. After that, everything should work OK.
At least, that has been my experience.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
I may be off the map for what the book says. I haven't bought it yet, and I don't want to mislead anyone. But I think a pretty solid overall point to make is that Gems gets updated first.
Step 1 is actually making sure that XCode is installed on your system. That sets you up with Rails 1.2.6 and Gems 1.0.
I didn't realize that Gems had a flag for self-updating. What I did was per the ruby on rails download page.. Instead of updating Rails first, I went to the link for downloading Gems
Then I used Gems to update Rails. In Terminal type "gem update rails". Gems is pretty key because its the package manager.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
There are a lot of good reasons to update the gem system first (with gem update --system). Among them is the fact that newer versions of gem automatically pull in all dependent packages; before, you would have to ask explicitly for dependency inclusion.
Do you already have an account? Log in and claim this comment.
I've installed Ruby and the Gems as described above (rails, sqlite3-ruby, mongrel). No errors reported on the installations.
When I run the versions.rb script, I get an error: "Sqlite: Exception: (eval):1:in ``': No such file or directory - sqlite3 -version"
The full output is below.
Mike
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\mcook1590>cd c:\ruby
C:\Ruby>ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
C:\Ruby>ruby versions.rb
----- Software version check at Wed Sep 17 11:39:44 -0400 2008
Ruby: 1.8.6
RubyGems: 1.2.0
Rails: 2.1.1
Mongrel: 1.1.5
Sqlite: Exception: (eval):1:in ``': No such file or directory - sqlite3 -version
*** LOCAL GEMS ***
actionmailer (2.1.1)
actionpack (2.1.1)
activerecord (2.1.1)
activeresource (2.1.1)
activesupport (2.1.1)
cgi_multipart_eof_fix (2.5.0)
fxri (0.3.6)
fxruby (1.6.16)
gem_plugin (0.2.3)
hoe (1.7.0)
hpricot (0.6)
log4r (1.0.5)
mongrel (1.1.5)
ptools (1.1.6)
rails (2.1.1)
rake (0.8.2)
ruby-opengl (0.60.0)
rubyforge (1.0.0)
sqlite3-ruby (1.2.3)
test-unit (2.0.0)
win32-api (1.2.0)
win32-clipboard (0.4.4)
win32-dir (0.3.2)
win32-eventlog (0.5.0)
win32-file (0.5.5)
win32-file-stat (1.3.1)
win32-process (0.5.9)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.4)
C:\Ruby>ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
C:\Ruby>ruby versions.rb
----- Software version check at Wed Sep 17 11:39:44 -0400 2008
Ruby: 1.8.6
RubyGems: 1.2.0
Rails: 2.1.1
Mongrel: 1.1.5
Sqlite: Exception: (eval):1:in ``': No such file or directory - sqlite3 -version
*** LOCAL GEMS ***
actionmailer (2.1.1)
actionpack (2.1.1)
activerecord (2.1.1)
activeresource (2.1.1)
activesupport (2.1.1)
cgi_multipart_eof_fix (2.5.0)
fxri (0.3.6)
fxruby (1.6.16)
gem_plugin (0.2.3)
hoe (1.7.0)
hpricot (0.6)
log4r (1.0.5)
mongrel (1.1.5)
ptools (1.1.6)
rails (2.1.1)
rake (0.8.2)
ruby-opengl (0.60.0)
rubyforge (1.0.0)
sqlite3-ruby (1.2.3)
test-unit (2.0.0)
win32-api (1.2.0)
win32-clipboard (0.4.4)
win32-dir (0.3.2)
win32-eventlog (0.5.0)
win32-file (0.5.5)
win32-file-stat (1.3.1)
win32-process (0.5.9)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.4)
windows-pr (0.9.3)
C:\Ruby>
Do you already have an account? Log in and claim this comment.
But it apparently requires a separate install of Sqlite3. The install packages for Sqlite3 are here: http://www.sqlite.org/download.html
See under "Precompiled binaries for Windows."
Try the install, and see what happens.
IF YOU HAVE ALREADY INSTALLED Sqlite3, then you may need to add it to your path: Control Panel / System / Advanced tab / Environment Variables button
Then find Path under "System variables" click the edit button, and add the path at the end, e.g., if your path is, say:
C:\PROGRAM FILES\FOOBAR [probably very long . . .]
change it to
C:\PROGRAM FILES\FOOBAR;C:\path\to\sqlite3
Don't forget the semi-colon that goes between each path.
Do you already have an account? Log in and claim this comment.
Yep... used the "One-Click Installer", followed by the gem install on the various Gems.
I downloaded sqlite3.exe and sqlite3.dll from the site you suggested and placed them into the sqlite3 lib directory created as part of the gem install. I added in this directory into the PATH.
All appears to be OK now.
Thanks!
Mike
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
http://www.phwinfo.com/forum/comp-lang-ruby/295...
The solution seems to be installing version 1.2.3 of the sqlite3-ruby gem. Is there a way to get version 1.2.4 installed on XP? Does it matter if I have 1.2.3?
Add New Comment