Click here to get back home

MakeMaker and data files

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
MakeMaker and data files alexxx.magni 03-22-2006
Posted by alexxx.magni on March 22, 2006, 8:02 am
Please log in for more thread options


hi people,
I'm beginning to use MakeMaker and have some problems with it: I need
to install some auxiliary data files, and I can't figure out how to
tell that to MakeMaker.

e.g. I'd like that my final install would include some data files under
/etc/projectname/

so: 1) where do I put them originally? (in lib/etc for example?)
and 2) how do I tell MakeMaker to install them in /etc/projactname ?

Any ideas?

thank you1

Alessandro Magni


Posted by alexxx.magni on March 22, 2006, 8:22 am
Please log in for more thread options


I correct myself on a point: I just checked that if I put my datafiles
in a directory like projectname/lib/datafiles/... they are all
installed for good, in my computer under
/usr/lib/perl5/site_perl/5.8.6/projectname/datafiles/...

This compromise I could accept, but how do I access that install
directory name from my program?

thanks!


Alessandro


Posted by Sisyphus on March 22, 2006, 6:28 pm
Please log in for more thread options



> I correct myself on a point: I just checked that if I put my datafiles
> in a directory like projectname/lib/datafiles/... they are all
> installed for good, in my computer under
> /usr/lib/perl5/site_perl/5.8.6/projectname/datafiles/...
>
> This compromise I could accept, but how do I access that install
> directory name from my program?
>

The prefix to that directory will be contained in one of the %Config keys -
I think it's $Config. That being the case, so long as you 'use
Config;' , you can access the directory as
$Config/projectname/datafiles/ .

Cheers,
Rob



Similar ThreadsPosted
installing files in /usr/lib/share with MakeMaker October 9, 2005, 3:30 pm
Help needed with MakeMaker August 15, 2005, 2:37 pm
ExtUtils::MakeMaker December 30, 2006, 9:06 am
Portable dot-files (hidden-files) ? November 5, 2007, 1:20 am
MakeMaker and compiling/installing C/C++ programs July 29, 2004, 11:39 am
ExtUtils::MakeMaker installation question January 15, 2005, 11:38 am
Setting file permissions in ExtUtils::MakeMaker January 25, 2005, 5:15 am
How do I totally remove module installed via MakeMaker February 5, 2005, 1:58 pm
extutils::MakeMaker trying to portability build a shared lib July 9, 2007, 4:36 pm
Passing Environment and ExtUtils::MakeMaker options to CPAN methods August 5, 2005, 8:42 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap