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

Need installation instructions #9

Open
teo1978 opened this issue Sep 22, 2015 · 5 comments
Open

Need installation instructions #9

teo1978 opened this issue Sep 22, 2015 · 5 comments

Comments

@teo1978
Copy link

teo1978 commented Sep 22, 2015

How is one supposed to figure out how the hell to get the included examples to work?

I have installed composer and run composer.phar install, but nothing works out of the box. OpenStreetMap.php itself has some hard-coded require() calls to libraries installed via composer; even removing those and including the autoloader generated by composer (in the vendor folder) produces other require() errors coming from the libraries themselves (e.g. equire_once(Net/URL2.php): failed to open stream: No such file or directory in /..../examples/vendor/pear/http_request2/HTTP/Request2.php)

So either the composer package information is screwed up, or some instructions are needed in order to set up Services_Openstreetmap properly.

@Max00
Copy link

Max00 commented Jan 25, 2016

Copy/paste the example files you want to try to the /Services_Openstreetmap parent folder

@teo1978
Copy link
Author

teo1978 commented Jan 28, 2016

Nope, doesn't work

Warning: require_once(HTTP/Request2.php): failed to open stream: No such file or directory in /home/path/to/Services_Openstreetmap/Services/OpenStreetMap.php on line 16

And even if it did (or if you are supposed to copy and paste the example file somewhere other than /Services_Openstreetmap), that should be in the readme

@teo1978
Copy link
Author

teo1978 commented Jan 28, 2016

If you mean the parent _of_ /Services_Openstreetmap, still doesn't work:

Fatal error: require_once(): Failed opening required 'Services/OpenStreetMap.php' (include_path='/home/teo/xxx:.:/opt/lampp/lib/php') in /home/teo/xxx/tmp/example3_genericdemo.php on line 21

@pedjas
Copy link

pedjas commented Dec 18, 2017

It would be good to have it work without need for Composer and especially without need for PEAR.

@prasadrajuv
Copy link

https://github.com/pear/Net_URL2 copy Net folder. all required libs available in pear root 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

4 participants