{"action":"opened","issue":{"url":"https://api.github.com/repos/BBC-News/wraith/issues/281","labels_url":"https://api.github.com/repos/BBC-News/wraith/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/BBC-News/wraith/issues/281/comments","events_url":"https://api.github.com/repos/BBC-News/wraith/issues/281/events","html_url":"https://github.com/BBC-News/wraith/issues/281","id":102342728,"number":281,"title":"gem install wraith -> failed to build gem native extension. how i solve it (it is the right way?)","user":{"login":"abioneperhobby","id":2149815,"avatar_url":"https://avatars.githubusercontent.com/u/2149815?v=3","gravatar_id":"","url":"https://api.github.com/users/abioneperhobby","html_url":"https://github.com/abioneperhobby","followers_url":"https://api.github.com/users/abioneperhobby/followers","following_url":"https://api.github.com/users/abioneperhobby/following{/other_user}","gists_url":"https://api.github.com/users/abioneperhobby/gists{/gist_id}","starred_url":"https://api.github.com/users/abioneperhobby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abioneperhobby/subscriptions","organizations_url":"https://api.github.com/users/abioneperhobby/orgs","repos_url":"https://api.github.com/users/abioneperhobby/repos","events_url":"https://api.github.com/users/abioneperhobby/events{/privacy}","received_events_url":"https://api.github.com/users/abioneperhobby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-21T09:52:45Z","updated_at":"2015-08-21T09:52:45Z","closed_at":null,"body":"Hi\r\nthanks for this awesome project.\r\nInstalling wraith as reported you will encounter an error\r\nso\r\napt-get install ruby -> ok\r\napt-get install imagemagick -> ok\r\napt-get install phantomjs -> ok\r\n\r\ngem install wraith\r\n\r\nroot@andrea-VirtualBox:~# gem install wraith\r\nFetching: image_size-1.4.1.gem (100%)\r\nSuccessfully installed image_size-1.4.1\r\nFetching: mini_portile-0.6.2.gem (100%)\r\nSuccessfully installed mini_portile-0.6.2\r\nFetching: nokogiri-1.6.6.2.gem (100%)\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing wraith:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    /usr/bin/ruby2.1 extconf.rb\r\nmkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /var/lib/gems/2.1.0/gems/nokogiri-1.6.6.2 for inspection.\r\nResults logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.6.6.2/gem_make.out\r\n\r\nSo i tried installing ruby-dev\r\n\r\napt-get install ruby-dev -> ok\r\n\r\nso now gem install wraith encouter another problem \r\n\r\nERROR:  Error installing wraith:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    /usr/bin/ruby2.1 extconf.rb\r\nchecking if the C compiler accepts ... yes\r\nBuilding nokogiri using packaged libraries.\r\nchecking for gzdopen() in -lz... no\r\nzlib is missing; necessary for building libxml2\r\n\r\n\r\nso i installed\r\napt-get install zlib1g-dev -> ok\r\n\r\ngem install wraith-> ok\r\n\r\nnow wraith works, but i don't known if this is the right way to install. i'm a newbie. \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}}