Few Tweaks in Diaspora Installation

- - posted in Technical | Tagged as diaspora | Comments

Recently I wanted to checkout the Diaspora project, and to my despair I faced lot of problems installing it in Windows OS.
I could not install it on Windows, and I did'nt want to invest lot of time , as it was not important and I was trying this only for killing my time. However, I installed it on a VM (Ubuntu) and faced a few problems.

This post is about keeping a note of what I faced and use it in future (if needed).

1. Issue with installing rmagick:

rmagick installation issue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ERROR:  Error installing rmagick:
    ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.1. Can't find Magick-config in /usr/local/bin:/bin:
/sbin:/usr/bin:/usr/sbin:/usr/libexec
.
.
.
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
Building native extensions.  This could take a while....

I found a solution here but it did not work for me.

To solve the rmagick issue, run the following commands:

Run the following commands to fix issues with rmagick
1
2
sudo apt-get install libmagickcore-dev libmagickwand-dev  
sudo gem install rmagick



2. Issue with installing typhoeus:

rmagick installation issue
1
2
3
4
5
6
7
8
9
10
If you get this:

Installing typhoeus (0.3.3) with native extensions
/usr/local/lib/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': 
ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/usr/bin/ruby1.8 extconf.rb 
checking for curl/curl.h in /opt/local/include,/opt/local/include/curl,/usr/include/curl,
/usr/include,/usr/include/curl,/usr/local/include/curl... no
need libcurl

You can fix it by installing the libcurl3-dev package:

commands to fix issues with typhoeus
1
2
sudo apt-get install libcurl3-dev
sudo apt-get install typhoeus



I did not want to use mysql2 adapter for diaspora so I had to install postgreSQL (Since sqlite had problems with some length of index names)

installing postgresql in linux
1
sudo apt-get install postgresql-9.1

If you find issue in some gem which depends on curl, then you must install curl first.

installing curl
1
sudo apt-get install curl

That's all folks.
au revoir





Gravatar of Ashwani Kumar

Recent posts


Subscribe



Your Feedback encourages me




Learning and Developments

One Month Rails



, 2FA, AWS AWS, Active Authenticator Directory, Facebook Flash, Forwarding, GOD,Chat,Coffee Github,Feedback,Repo Google Google,Search HAProxy, IOT, IP-block JQuery LetsEncrypt Load MQ MQTT, Messaging Octopress Octopress, OpenVpn OpenVpn, PI, Plugin Plugin, Port Raspberry, S3, SSH, Shell,Commands Soapui, Tag Tag, Tree, Tunneling XML XML, XServer, Xming ajax, angular, animated architecture, balancing cloud, commenting, connectivity datatables diagrams diaspora dropdown geocoding grep, hashicorp, ipaddress, ipv6, java, java,python mysql nokogiri, octopress-migration octopress-plugin openapi, openssl powershell proxy rails, repo reviews ruby, script scripts, security, sharepoint shell spring springboot, ssh, swagger, telnet, vault vi, vieditor vim, visualblock, webattacks windows,cleanup windowsxp