Archive for September, 2010
How to install Diaspora on Windows?
by Raza on Sep.21, 2010, under Uncategorized
So the wait is over. Diaspora is finally here. I have been working on getting it up and running in Windows. After running into some problems over running it, i was finally able to get it working on Windows. So, here are steps to install Diaspora on Windows.
- Download the Ruby installer from RubyInstaller download page. Download the installer for Ruby 1.8.7.
- When you have installed Ruby, goto command prompt (use as an administrator in Vista/Win7) and navigate your Ruby installation’s directory e.g. [RUBY_INSTALL_DIR]\bin.
- Enter the command “gem install rubygems-update”. After successfull installation, again run the command “update_rubygems”.
- Download and install MongoDB. Use this guide to install it on Windows. You can also install it as a service as described here.
- Download and install OpenSSL from here.
- Download and install ImageMagick from here.
- Now enter the commands “gem install mongo”, “gem install bson” and “gem install bson_ext” to install MongoDB driver for Ruby.
- Now install Ruby DevKit. Installation instructions for this are available from here.
- Now open file RUBY_INSTALL_DIR\lib\ruby\gems\1.8\gems\bundler-1.0.0\lib\bundler\lockfile_parser.rb and edit the line 14 to “lockfile.split(/\r?\n+/).each do |line|“
- Now run command “gem install bundler”. This will bundler gem for Ruby.
- Download and install TortoiseGit and msysgit.
- Now go to Ruby Install directory. Right click and choose “Git Clone”. This will open up a dialog box. Write “http://github.com/diaspora/diaspora.git” and “C:\RUBY_INSTALL_DIR\diaspora” as URL and directory respectively and click OK. This will install latest Git repository of Diaspora.
- Navigate to the repository folder in command prompt, and run “bundler install”. This will now install Diaspora.
- After a successful installation, run the command “bundle exec thin start“. It may show an error like this: “rbreadline.rb:4404: uninitialized constant RbReadline::Encoding (NameError)“. To remove it, open the file “RUBY_INSTALL_DIR\lib\ruby\site_ruby\1.8\rbreadline.rb” and comment out line 4404. Now run the command “bundle exec thin start” again, and no error will be shown.
- Open a browser of your choice, and type in “http://localhost:3000/”. This will open up Diaspora screen like this
. - Also note that if you close the command prompt, the server will stop running.
- Now close the Diaspora browser window and command prompt.
- Open a new command prompt, and navigate to the repository directory. Type in these commands “gem install rake”, “rake db:seed:tom” and finally “bundle exec thin start”.
- The commands in the above step will populate some data and will allow you to login with username tom and password evankorth . After entering this username & password, you will see the user homepage.

- There it is, a working installation of Diaspora on Windows.