Services_Openstreetmap icon indicating copy to clipboard operation
Services_Openstreetmap copied to clipboard

Need installation instructions

Open teo1978 opened this issue 9 years ago • 5 comments

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.

teo1978 avatar Sep 22 '15 21:09 teo1978

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

Max00 avatar Jan 25 '16 14:01 Max00

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 avatar Jan 28 '16 21:01 teo1978

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

teo1978 avatar Jan 28 '16 21:01 teo1978

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

pedjas avatar Dec 18 '17 21:12 pedjas

https://github.com/pear/Net_URL2 copy Net folder. all required libs available in pear root directory

prasadrajuv avatar Dec 15 '19 05:12 prasadrajuv