Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during first use #29

Open
mcandre opened this issue Nov 9, 2013 · 1 comment
Open

Error during first use #29

mcandre opened this issue Nov 9, 2013 · 1 comment

Comments

@mcandre
Copy link

mcandre commented Nov 9, 2013

PEAR 1 was giving me trouble, so I tried using PEAR 2.

Trace:

$ curl http://pear2.php.net/pyrus.phar
$ php pyrus.phar install phpmd
Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52
Pyrus: No user configuration file detected
It appears you have not used Pyrus before, welcome!  Initialize install?
Please choose:
  yes
  no
[yes] : 
Great.  We will store your configuration in:
  /Users/andrew/.pear/pearconfig.xml
Where would you like to install packages by default?
[/Users/andrew] : 
You have chosen:
/Users/andrew
Pyrus\Config\Exception: Unable to parse invalid PEAR configuration at "/Users/andrew"
 Pyrus\Config\Exception: Document is empty
  Pyrus\Config\Exception: Start tag expected, '<' not found

System:

$ specs php os
Specs:

specs 0.7
https://github.com/mcandre/specs#readme

pear version
PEAR Version: 1.9.4
PHP Version: 5.4.17
Zend Engine Version: 2.4.0
Running on: Darwin mockingjay.westell.com 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64

php --version
PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.9 (13A603)
@obrun
Copy link

obrun commented Jun 14, 2014

This appears to happen when you respond that you would like the modules installing at your home directory under OS X. If you ask for /Users/youraccount/pear instead, where pear is a non existent subdirectory then it will complete. Perform a rm -r ~/.pear* to remove the corrupted configuration in the home directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants