Xavier Payn
2007-07-02 13:29:49 UTC
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. --------------------------------------------------------
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. --------------------------------------------------------