Re: Installing Perl Modules
by marto (Cardinal) on Aug 29, 2016 at 07:09 UTC
|
Assuming you're running windows use Strawberry Perl, as standard it has a full build environment (c compiler, build tools) and many useful additional modules, it'll make thinks simpler for you. I also work in environments where there is no direct Internet access. Consider using minicpan in a system which does have internet access to build a portable cpan mirror.
Update: It seems that since v5.18 ActiveState should attempt to download and install MinGW on first use, however this does not help you if you don't have direct internet access. Is it a case of no internet access at all, or just checking the documentation for cpan/PPM regarding proxy/network properly? See also Yes, even you can use CPAN.
| [reply] |
Re: Installing Perl Modules
by duyet (Friar) on Aug 29, 2016 at 07:08 UTC
|
$ cpan
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support available (try 'install Bundle::CPAN')
cpan> install Term::ReadKey
CPAN: Storable loaded ok
Going to read /glb/home/nldvo7/.cpan/Metadata
Database was generated on Fri, 06 Nov 2015 04:29:02 GMT
Running install for module Term::ReadKey
Running make for J/JS/JSTOWE/TermReadKey-2.33.tar.gz
. . .
Windows: if you installed ActiveState, there should be a ppm.bat file in the <drive>:\perl\bin folder (or what ever folder you did install perl. Double click on it should start the Perl Package Manager, then you can search and install required packages. | [reply] [d/l] [select] |
|
|
ActivePerl has cpan also, but this won't help as OP seemingly doesn't have a proper build environment (c compiler) or proper internet access, so without resolving the network access they won't be able to install anything this way.
Update: slight rewording.
| [reply] [d/l] |
Re: Installing Perl Modules
by 9mohit2 (Sexton) on Aug 29, 2016 at 09:23 UTC
|
I am using Active Perl 5.20.2 on a Windows 10 system. I have internet access but these sites are blocked for downloading contents(error code - 500). Also PPM GUI shows very less no. of modules as it is not able to synchronize due to corporate restrictions.
Can I get manual installing instructions for C based modules anywhere. Like which file to place where etc.?? | [reply] |
|
|
"I have internet access but these sites are blocked for downloading contents(error code - 500). Also PPM GUI shows very less no. of modules as it is not able to synchronize due to corporate restrictions."
The link I provided you earlier (Yes, even you can use CPAN) touches on all of these points, management buy in, corporate policy etc, please read them and consider resolving the issue within your organisation or client. I faced this issue until working through it with our client. The process will be different for each organisation.
"Can I get manual installing instructions for C based modules anywhere. Like which file to place where etc.??"
It's not always quite that straightforward, consider using the ActiveState documentation for configuration of the development tools (which you will still have to download and install). I've not had to do this for years.
Update: PPM allows local installations Re: Problems installing new Modules for ActiveState v 5.10.
| [reply] |
|
|
The process will be different for each organisation.
It may be anywhere from "Oh, we didn't realize you needed that, here is a change to the FW rule" to "Provide a risk analysis for each version of each module that you will need (and dependencies) and we will stash it in a corporate CPAN environment that you can use" to "Not on your life - intertubes bad" (ok, some places that is a valid stance, but I have seen it be just an "easier to block this than deal with it safely") approach.
Communication with management about this stuff is good. If you can present it in a cost/value type of comparison, then management can do their job and either buy in, or reject it. If not authorized to make a decision yourself, all that you can do (well, legitimately) is provide information to those that are. There may be a valid risk that you have not yet considered, or a benefit that they have not.
Good luck!
| [reply] |
|
|
| [reply] |
|
|
The post from marto is a good one++, Re^2: Installing Perl Modules. You may not understand that the Active State .ppd file has everything needed for the installation. It is pre-compiled and "ready to go" . You must make sure that it is the right version and architecture yourself, but the ppm command prompt can install it.
I have in the past downloaded and installed a .ppd file that was not in the Active State Repository. That is rare for me and I haven't done it in some years. I have never built an AS module from "scratch". That is possible, however normally there is no need for this.
I did some googling and it is possible for you to make your own "ppm repository mirror" which you could put on a flash drive.
You might want to look at repository info, old but some info relevant.
I have no idea of the political environment at your workplace. If I were your manager, I would want that everything that you do be done in a maintainable process. If you need some module for your work, I would find a way to make that happen for you in an "official" way. If there is a reason for this that makes financial sense for the business, I would find a way. Consider the option of talking with your boss.
Things that would bolster your case: a) module has a long history, b) it is well maintained with regular updates, c)has few outstanding defect reports, d) will help me be more productive because of X. Get your "ammo" together before talking with the boss.
| [reply] |
|
|
| [reply] |
|
|