Re: make install putting perl files in wrong location

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 18/04/07, Hamster <[email protected]> wrote:
> I am trying to compile net-snmp 5.4 from source on an Ubuntu system.
>
> I am using a ./configure line that looks like:
> ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
> --with-persistent-directory=/var/lib/snmp --enable-embedded-perl
>
> When I run make install, the perl modules *always* get put in
> /usr/local/lib/perl, and I don't want them there :-) I'd like them to
> obey my --prefix settings.

I believe that the installation of the perl modules is probably
controlled by settings of the installed perl configuration, rather
than the "configure" block.

What does the command

     perl '-V:install.*'

display?



> But in a nutshell, how do I tell the perl section where I want the
> perl files placed? It seems to completely ignore --prefix (even if I
> do something silly like setting --prefix=/foo, the perl modules get
> put in /usr/local/lib/perl) so I'm a bit stumped as to what to do.

Untested, but try setting the environment variable DESTDIR
before running configure.  See whether that makes any difference.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.