How can I install CPAN modules locally without root access (DynaLoader.pm line 229 error)?

后端 未结 6 1225
花落未央
花落未央 2020-11-29 11:55

Doesn\'t work with other modules, but to give an example. I installed Text::CSV_XS with a CPAN setting:

\'makepl_arg\' => q[PREFIX=~/lib],
6条回答
  •  心在旅途
    2020-11-29 12:12

    Try this instead:

    'makepl_arg' => q[PREFIX=~/]
    

    PREFIX sets the base for all the directories you will be installing into (bin, lib, and so forth.)

    You may also be running into shell expansion problems with your '~'. You can try to expand it yourself:

    'makepl_arg' => q[PREFIX=/home/users/foobar]
    

    It would also be helpful if you included the commands you used to get the error you are asking about.

提交回复
热议问题