{"action":"opened","issue":{"url":"https://api.github.com/repos/jyypma/nloptr/issues/40","repository_url":"https://api.github.com/repos/jyypma/nloptr","labels_url":"https://api.github.com/repos/jyypma/nloptr/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/jyypma/nloptr/issues/40/comments","events_url":"https://api.github.com/repos/jyypma/nloptr/issues/40/events","html_url":"https://github.com/jyypma/nloptr/issues/40","id":263612560,"number":40,"title":"NLOpt no longer installing","user":{"login":"ganesh-krishnan","id":7553194,"avatar_url":"https://avatars0.githubusercontent.com/u/7553194?v=4","gravatar_id":"","url":"https://api.github.com/users/ganesh-krishnan","html_url":"https://github.com/ganesh-krishnan","followers_url":"https://api.github.com/users/ganesh-krishnan/followers","following_url":"https://api.github.com/users/ganesh-krishnan/following{/other_user}","gists_url":"https://api.github.com/users/ganesh-krishnan/gists{/gist_id}","starred_url":"https://api.github.com/users/ganesh-krishnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganesh-krishnan/subscriptions","organizations_url":"https://api.github.com/users/ganesh-krishnan/orgs","repos_url":"https://api.github.com/users/ganesh-krishnan/repos","events_url":"https://api.github.com/users/ganesh-krishnan/events{/privacy}","received_events_url":"https://api.github.com/users/ganesh-krishnan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-07T03:11:48Z","updated_at":"2017-10-07T03:11:48Z","closed_at":null,"author_association":"NONE","body":"Installation of nloptr is failing on Ubuntu (and probably other platforms), because the NLOpt package has moved permanently. \r\n\r\nNote the `curl -I` output below:\r\n\r\n```  \r\n% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r\nHTTP/1.1 301 Moved Permanently\r\nDate: Sat, 07 Oct 2017 03:06:45 GMT\r\nServer: Apache/2.4.10 (Debian)\r\nLocation: https://github.com/stevengj/nlopt/releases/download/nlopt-2.4.2/nlopt-2.4.2.tar.gz\r\nContent-Type: text/html; charset=iso-8859-1\r\n```\r\n\r\nThis can be fixed by changing the URL at this [line](https://github.com/jyypma/nloptr/blob/c4e0fb4a54ffc21c2a4cf4bb5741d8f9ce43e05c/src/Makevars.in#L120):\r\n\r\nAlternatively, you can add the `method=\"curl\"` and `extra=-L` options to `download.files` to fix this. If you do that line 120 in the above file will read:\r\n\r\n```\r\n${R_HOME}/bin/Rscript\" --vanilla -e \"download.file(\r\n            url='http://ab-initio.mit.edu/nlopt/nlopt-${NLOPT_VERSION}.tar.gz', \r\n            destfile='nlopt-${NLOPT_VERSION}.tar.gz', \r\n            method='curl', extra='-L')\r\n```\r\n"}}
{"actor":{"display_login":"ganesh-krishnan"}}