{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/157","labels_url":"https://api.github.com/repos/lovell/sharp/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/157/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/157/events","html_url":"https://github.com/lovell/sharp/issues/157","id":55752011,"number":157,"title":"error trying to require sharp on EC2","user":{"login":"bedrocktv","id":1351974,"avatar_url":"https://avatars.githubusercontent.com/u/1351974?v=3","gravatar_id":"","url":"https://api.github.com/users/bedrocktv","html_url":"https://github.com/bedrocktv","followers_url":"https://api.github.com/users/bedrocktv/followers","following_url":"https://api.github.com/users/bedrocktv/following{/other_user}","gists_url":"https://api.github.com/users/bedrocktv/gists{/gist_id}","starred_url":"https://api.github.com/users/bedrocktv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedrocktv/subscriptions","organizations_url":"https://api.github.com/users/bedrocktv/orgs","repos_url":"https://api.github.com/users/bedrocktv/repos","events_url":"https://api.github.com/users/bedrocktv/events{/privacy}","received_events_url":"https://api.github.com/users/bedrocktv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lovell/sharp/labels/triage","name":"triage","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-28T12:46:17Z","updated_at":"2015-01-28T16:16:40Z","closed_at":null,"body":"Hi\r\n\r\nI'm getting an error when trying to include sharp. I'm running on EC2 and have updated to the latest AMI.\r\n\r\nHere are the steps I've taken (all from my ec2-user path).  \r\n\r\n1> $ sudo curl -s https://raw.githubusercontent.com/lovell/sharp/master/preinstall.sh | sudo bash -\r\n\r\n2> $ npm install sharp\r\n-\r\n> sharp@0.9.0 install /home/ec2-user/node_modules/sharp\r\n> node-gyp rebuild\r\n\r\nmake: Entering directory `/home/ec2-user/node_modules/sharp/build'\r\n  CXX(target) Release/obj.target/sharp/src/common.o\r\n  CXX(target) Release/obj.target/sharp/src/utilities.o\r\n  CXX(target) Release/obj.target/sharp/src/metadata.o\r\n  CXX(target) Release/obj.target/sharp/src/resize.o\r\n  CXX(target) Release/obj.target/sharp/src/sharp.o\r\n  SOLINK_MODULE(target) Release/obj.target/sharp.node\r\n  SOLINK_MODULE(target) Release/obj.target/sharp.node: Finished\r\n  COPY Release/sharp.node\r\nmake: Leaving directory `/home/ec2-user/node_modules/sharp/build'\r\nsharp@0.9.0 node_modules/sharp\r\n├── nan@1.6.1\r\n├── semver@4.2.0\r\n├── bluebird@2.9.3\r\n└── color@0.7.3 (color-convert@0.5.2, color-string@0.2.4)\r\n\r\n3> $ node server.js\r\n<<< START >>>\r\nhttp = [object Object]\r\nhttps = [object Object]\r\n\r\nmodule.js:356\r\n  Module._extensions[extension](this, filename);\r\n                               ^\r\nError: libvips.so.37: cannot open shared object file: No such file or directory\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at Object.<anonymous> (/home/ec2-user/node_modules/sharp/index.js:11:13)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at Object.<anonymous> (/home/ec2-user/server.js:9:13)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n\r\nHere is my server.js located in ec2-user\r\nconsole.log ( \"<<< START >>>\" );\r\n\r\nvar http = require('http');\r\nconsole.log ( \"http = \" + http );\r\n\r\nvar https = require('https');\r\nconsole.log ( \"https = \" + https );\r\n\r\nvar sharp = require('sharp');\r\nconsole.log ( \"sharp = \" + sharp );\r\n\r\nI'm new to EC2 and Node so no doubt I'm just missing something fairly simple. Any suggestions?"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/71862902","html_url":"https://github.com/lovell/sharp/issues/157#issuecomment-71862902","issue_url":"https://api.github.com/repos/lovell/sharp/issues/157","id":71862902,"user":{"login":"bedrocktv","id":1351974,"avatar_url":"https://avatars.githubusercontent.com/u/1351974?v=3","gravatar_id":"","url":"https://api.github.com/users/bedrocktv","html_url":"https://github.com/bedrocktv","followers_url":"https://api.github.com/users/bedrocktv/followers","following_url":"https://api.github.com/users/bedrocktv/following{/other_user}","gists_url":"https://api.github.com/users/bedrocktv/gists{/gist_id}","starred_url":"https://api.github.com/users/bedrocktv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedrocktv/subscriptions","organizations_url":"https://api.github.com/users/bedrocktv/orgs","repos_url":"https://api.github.com/users/bedrocktv/repos","events_url":"https://api.github.com/users/bedrocktv/events{/privacy}","received_events_url":"https://api.github.com/users/bedrocktv/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T16:16:40Z","updated_at":"2015-01-28T16:16:40Z","body":"Ok, fair comment and thanks for the links.\r\n\r\nI'll try another instance.\r\n\r\n"}}