{"action":"created","issue":{"url":"https://api.github.com/repos/phpbrew/phpbrew/issues/803","repository_url":"https://api.github.com/repos/phpbrew/phpbrew","labels_url":"https://api.github.com/repos/phpbrew/phpbrew/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/phpbrew/phpbrew/issues/803/comments","events_url":"https://api.github.com/repos/phpbrew/phpbrew/issues/803/events","html_url":"https://github.com/phpbrew/phpbrew/issues/803","id":184630623,"number":803,"title":"Exception: openssl extension not found, to download releases file you need openssl.","user":{"login":"portchris","id":6716849,"avatar_url":"https://avatars.githubusercontent.com/u/6716849?v=3","gravatar_id":"","url":"https://api.github.com/users/portchris","html_url":"https://github.com/portchris","followers_url":"https://api.github.com/users/portchris/followers","following_url":"https://api.github.com/users/portchris/following{/other_user}","gists_url":"https://api.github.com/users/portchris/gists{/gist_id}","starred_url":"https://api.github.com/users/portchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portchris/subscriptions","organizations_url":"https://api.github.com/users/portchris/orgs","repos_url":"https://api.github.com/users/portchris/repos","events_url":"https://api.github.com/users/portchris/events{/privacy}","received_events_url":"https://api.github.com/users/portchris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-22T13:32:02Z","updated_at":"2016-10-23T09:19:49Z","closed_at":null,"body":"I seem to be running around in circles trying to install a version of php using phpbrew. When trying to install any version of php it returns a fatal error: \r\n\r\n> **openssl extension not found, to download releases file you need openssl**. \r\n\r\nBut when I try install openssl via phpbrew it also throws an error saying: \r\n\r\n> **Error: PHPBREW_PHP environment variable is not defined. This extension command requires you specify a PHP version from your build list.**\r\n\r\nAny help would be much appreciated.\r\n\r\n### Commands & Output\r\n**phpbrew --debug install php-5.6.18 +default**\r\n\r\nThrows this error:\r\n\r\n```\r\nWARNING: curl extension might be required for fetching data.\r\nException: openssl extension not found, to download releases file you need openssl.\r\nThrown from phar:///usr/bin/phpbrew/src/PhpBrew/ReleaseList.php at line 163:\r\n\r\n  160    private static function downloadReleaseListFromOfficialSite($version, OptionResult $options = null)\r\n  161    {\r\n  162        if (!extension_loaded('openssl')) {\r\n> 163            throw new Exception(\r\n  164                'openssl extension not found, to download releases file you need openssl.');\r\n  165        }\r\n  166\r\n  167        $max = ($options && $options->old) ? 1000 : 100;\r\n\r\nTrace:\r\n    0) PhpBrew\\ReleaseList::downloadReleaseListFromOfficialSite(7, GetOptionKit\\OptionResult)\r\n        from phar:///usr/bin/phpbrew/src/PhpBrew/ReleaseList.php: 179\r\n    1) PhpBrew\\ReleaseList::buildReleaseListFromOfficialSite(GetOptionKit\\OptionResult)\r\n        from phar:///usr/bin/phpbrew/src/PhpBrew/ReleaseList.php: 136\r\n    2) PhpBrew\\ReleaseList->fetchRemoteReleaseList(GetOptionKit\\OptionResult)\r\n        from phar:///usr/bin/phpbrew/src/PhpBrew/ReleaseList.php: 154\r\n    3) PhpBrew\\ReleaseList::getReadyInstance(GetOptionKit\\OptionResult)\r\n        from phar:///usr/bin/phpbrew/src/PhpBrew/Command/InstallCommand.php: 182\r\n    4) PhpBrew\\Command\\InstallCommand->execute('php-5.3.10', '+default')\r\n        from : 0\r\n    5) call_user_func_array([PhpBrew\\Command\\InstallCommand, 'execute'], ['php-5.3.10', '+default'])\r\n        from phar:///usr/bin/phpbrew/vendor/corneltek/cliframework/src/CommandBase.php: 845\r\n    6) CLIFramework\\CommandBase->executeWrapper(['php-5.3.10', '+default'])\r\n        from phar:///usr/bin/phpbrew/vendor/corneltek/cliframework/src/Application.php: 398\r\n    7) CLIFramework\\Application->run(['/usr/bin/phpbrew', '--debug', 'install', 'php-5.3.10', '+default'])\r\n        from phar:///usr/bin/phpbrew/src/PhpBrew/Console.php: 111\r\n    8) PhpBrew\\Console->runWithTry(['/usr/bin/phpbrew', '--debug', 'install', 'php-5.3.10', '+default'])\r\n        from phar:///usr/bin/phpbrew/scripts/phpbrew-emb.php: 2\r\n    9) require('phar:///usr/bin/phpbrew/scripts/phpbrew-emb.php')\r\n        from /usr/bin/phpbrew: 99\r\n```\r\n\r\n**phpbrew --debug ext install openssl**\r\n\r\nThrows this error: \r\n\r\n```\r\n# WARNING: curl extension might be required for fetching data.\r\nError: PHPBREW_PHP environment variable is not defined.\r\n  This extension command requires you specify a PHP version from your build list.\r\n  And it looks like you haven't switched to a version from the builds that were built with PHPBrew.\r\nSuggestion: Please install at least one PHP with your prefered version and switch to it.\r\n```\r\n\r\n### Platform\r\nOS: Ubuntu 16.04 (Windows Sub-system for linux)\r\n\r\nRunning PHP: \r\nNone yet, cannot install.\r\n\r\nInstalling PHP:\r\nAny version of php on phpbrew\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/phpbrew/phpbrew/issues/comments/255577723","html_url":"https://github.com/phpbrew/phpbrew/issues/803#issuecomment-255577723","issue_url":"https://api.github.com/repos/phpbrew/phpbrew/issues/803","id":255577723,"user":{"login":"portchris","id":6716849,"avatar_url":"https://avatars.githubusercontent.com/u/6716849?v=3","gravatar_id":"","url":"https://api.github.com/users/portchris","html_url":"https://github.com/portchris","followers_url":"https://api.github.com/users/portchris/followers","following_url":"https://api.github.com/users/portchris/following{/other_user}","gists_url":"https://api.github.com/users/portchris/gists{/gist_id}","starred_url":"https://api.github.com/users/portchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portchris/subscriptions","organizations_url":"https://api.github.com/users/portchris/orgs","repos_url":"https://api.github.com/users/portchris/repos","events_url":"https://api.github.com/users/portchris/events{/privacy}","received_events_url":"https://api.github.com/users/portchris/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T09:19:48Z","updated_at":"2016-10-23T09:19:48Z","body":"Cheers Xiami appreciate the reply.\r\nIn case you aren't ready to release that commit as stable (I don't want to push you), is there a work around? Such as manually installing a version of PHP perhaps."}}
{"actor":{"display_login":"portchris"}}