Package Installation - can it be done locally?

M

me

If I need to use a package that is not available on a shared server
can I install that locally without the use of a system account? Or do
packages always have to be installed at the system level or with
elevated privs that I won't have?

In this case, the package is Spreadsheet::WriteExcel - but I am also
interested in the options when the package is something else, e.g.
Net::SMTP, etc.

Thanks,
 
T

Ted Zlatanov

m> If I need to use a package that is not available on a shared server
m> can I install that locally without the use of a system account? Or do
m> packages always have to be installed at the system level or with
m> elevated privs that I won't have?

m> In this case, the package is Spreadsheet::WriteExcel - but I am also
m> interested in the options when the package is something else, e.g.
m> Net::SMTP, etc.

Yes, definitely. In fact you can keep your private Perl interpreter,
which makes all of this easier.

Ted
 
J

Jim Gibson

me said:
If I need to use a package that is not available on a shared server
can I install that locally without the use of a system account? Or do
packages always have to be installed at the system level or with
elevated privs that I won't have?

In this case, the package is Spreadsheet::WriteExcel - but I am also
interested in the options when the package is something else, e.g.
Net::SMTP, etc.

See 'perldoc -q module'

"How do I keep my own module/library directory?"
 
M

me

See 'perldoc -q module'

"How do I keep my own module/library directory?"

Hmmm... I tried to do this:

c:>perl -MCPAN -e shell
cpan> install Spreadsheet::WriteExcel

And I got these results:

Going to write C:\Perl\cpan\Metadata
Running install for module 'Spreadsheet::WriteExcel'
Running make for J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.25.tar.gz
CPAN: LWP::UserAgent loaded ok (v5.810)
Fetching with LWP:

http://ppm.activestate.com/CPAN/authors/id/J/JM/JMCNAMARA/Spreadsheet-WriteE
el-2.25.tar.gz
CPAN: YAML::XS loaded ok (v0.26)
Alert: While trying to 'parse' YAML file
'C:\Perl\cpan\FTPstats.yml'
with 'YAML::XS' the following error was encountered:
Usage: YAML::XS::LibYAML::Load(yaml_str) at C:\Perl\lib/YAML/XS.pm
line 70.

Thoughts on the error?
 
J

Jim Gibson

me said:
Hmmm... I tried to do this:

c:>perl -MCPAN -e shell
cpan> install Spreadsheet::WriteExcel

And I got these results:

Going to write C:\Perl\cpan\Metadata
Running install for module 'Spreadsheet::WriteExcel'
Running make for J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.25.tar.gz
CPAN: LWP::UserAgent loaded ok (v5.810)
Fetching with LWP:

http://ppm.activestate.com/CPAN/authors/id/J/JM/JMCNAMARA/Spreadsheet-WriteE
el-2.25.tar.gz
CPAN: YAML::XS loaded ok (v0.26)
Alert: While trying to 'parse' YAML file
'C:\Perl\cpan\FTPstats.yml'
with 'YAML::XS' the following error was encountered:
Usage: YAML::XS::LibYAML::Load(yaml_str) at C:\Perl\lib/YAML/XS.pm
line 70.

Thoughts on the error?

No, not on your specific error. But I do know that the cpan shell is
not the first choice for installing modules under Active State Perl.
For that, you should use the GUI that Active State provides or the
'ppm' package manager.
 
M

me

No, not on your specific error. But I do know that the cpan shell is
not the first choice for installing modules under Active State Perl.
For that, you should use the GUI that Active State provides or the
'ppm' package manager.

Thanks Jim. It seems there's an error in the cpan install in the
version of Active State I am using. An upgrade got me much further but
still failed. I moved to using PPM and after tweaking the instructions
in the kit I was able to get it installed (I think... I will have to
test with a program to see if it works).

Thanks for your help,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,211
Messages
2,571,100
Members
47,695
Latest member
KayleneBee

Latest Threads

Top