[openstreetmap/openstreetmap-website] make cpanp command help working without requiring changes from user (#1763)

Tom Hughes notifications at github.com
Wed Mar 28 09:41:51 UTC 2018


The script isn't really broken as such - the problem is that the script tries to be overly helpful if you don't have the right libraries installed by trying to tell you how to install them. The problem is that there is no one right way to do that. For me on Fedora my preferred approach would be:

```
sudo dnf install 'perl(MediaWiki::API) perl(YAML::XS)'
```

But that is specific to me because I happen to have the MediaWiki::API module packaged locally as it isn't in the Fedora repos.

For Ubuntu my preference would be:

```
sudo apt-get install libmediawiki-api-perl libyaml-libyaml-perl
```

Of course you can always install directly from the CPAN repository either using the older `cpan` client or the newer `cpanp` client - in both cases you are likely to wind up being asked a lot of confusing questions if you've never used it before. You also then have the question of whether to install system wide using sudo or to your user account.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1763#issuecomment-376826011
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180328/99783aab/attachment.html>


More information about the rails-dev mailing list