Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Default bin_dir is not writeable #10

Open
gauthierm opened this Issue · 4 comments

5 participants

@gauthierm

The default bin_dir is /usr/bin even when you do a local installation. When pyrus is initialized, it should use a local bin dir.

@saltybeagle
Owner

Not advocating for one way or the other, just some more info:
Changing this would make pyrus handle scripts different than PEAR. Currently the bin_dir defaults to the same directory as the php executable. This ensures commands installed will likely be in your path. It would be a little odd to install PHPUnit, and not get the phpunit command at CLI without first specifying another bin_dir directory.

@saltybeagle saltybeagle referenced this issue from a commit in saltybeagle/Pyrus
@saltybeagle saltybeagle Use space instead of \n for the schemaLocation list
The \XMLWriter class will convert attributes with newlines into these to

 and 
. To work-around this issue, Pyrus\XMLWriter removes
newline characters which affects the channel.xml root attributes.
f7a18c7
@gritter

To make pyrus more usable in more locations, shared hosts for example, having a user defined bin directory option would make pyrus more portable. Keep the default, but allow users to define their own bin.

@demonkoryu

Well, it would be nice if this would be documented somewhere.

@rocksfrow

Perhaps instead add an option to the first-run install process which allows you to override the default bin (or press enter to keep /usr/bin default). This way it is very clear, each time you install (on a vhost setup).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.