Discussion:
Install a module in a custom directory
(too old to reply)
Xavier Payn
2007-07-02 13:29:49 UTC
Permalink
Hi everyone,

I made my own module in C following the perlxstut tutorial, which work
pretty well. This tutorial seems to be a little outdated (and
incomplete), but it was good enough to do what I wanted, except for the
installation part.
I want to use the perl executable shipped with the distro (fedora core
6), but I don't have a root access on our server, that's why I'd like to
install the module in a custom directory and just have to do a "push
@INC, '/my/custom/directory'" to use it. In the tutorial, there's a
section which describe the procedure:
"Alternately, you can specify the exact directory to place the
extension's files by placing a "PREFIX=/destination/directory" after the
make install. (or in between the make and install if you have a
brain-dead version of make)."

So, I tried:
* make install PREFIX=/my/custom/directory
* PREFIX=/my/custom/directory; make install
* export PREFIX=/my/custom/directory; make install
* make PREFIX=/my/custom/directory install

But nothing works... Does anybody have a solution?
Thanks for your answers

Xavier

--------------------------------------------------------

Ce message et toutes les pieces jointes peuvent etre confidentiels, et, de plus, peuvent etre couverts par un privilege ou une protection legale. Il est etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse prealable. Toutes opinions exprimees dans ce message, sont personnelles a leur auteur et ne sauraient necessairement refleter celle de IXIS Corporate & Investment Bank, de ses filiales ou de sa maison mere. Elles sont aussi susceptibles de modification sans notification prealable. Tous droits reserves. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute communication avec IXIS Corporate & Investment Bank peut etre controlee, enregistree et conservee. IXIS Corporate & Investment Bank decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. Les communications sur Internet n'etant pas securisees, IXIS Corporate & Investment Bank informe qu'il ne peut accepter aucune responsabilite quant au contenu de ce message.

This email and any attachment may be confidential and may also be legally privileged or otherwise protected from disclosure. It is intended only for the stated addressee(s) and access to it by any other person(s) is unauthorised. Any use, dissemination or disclosure not in accordance with its purpose, either in whole or in part, is prohibited without our prior formal approval. Any opinion expressed in this message may be personal to the author and may not necessarily reflect the opinion of IXIS Corporate & Investment Bank, its affiliates or parent company. It may also be subject to change without prior notice. Copyright reserved. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this email. If you have received it in error, please inform us immediately and delete all copies. Any communication made with IXIS Corporate & Investment Bank (whether personal or business) may be monitored and a record kept. IXIS Corporate & Investment Bank shall not be liable for the message if altered, changed or falsified. As communication on the Internet is not secure, IXIS Corporate & Investment Bank does not accept responsibility for the content of this message. --------------------------------------------------------
Muppet
2007-07-02 16:55:16 UTC
Permalink
Post by Xavier Payn
But nothing works... Does anybody have a solution?
Thanks for your answers
I've always found that you have to specify the PREFIX to Makefile.PL, not make.

In fact, installing an XS module to a nonstandard location is strongly
recommened by the gtk2-perl project when building from source. See the
INSTALLATION section of

http://gtk2-perl.cvs.sourceforge.net/gtk2-perl/gtk2-perl-xs/Glib/README?revision=1.72&view=markup
--
muppet <scott at asofyet dot org>
Loading...