Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: (Never Ending) Module Installation Issues

by listanand (Sexton)
on Jun 08, 2010 at 20:13 UTC ( [id://843730]=note: print w/replies, xml ) Need Help??


in reply to Re: (Never Ending) Module Installation Issues
in thread (Never Ending) Module Installation Issues

I am trying to install DBI module right now. After I did the above, and tried to install DBI, I got the error:

ERROR: Can't create '/usr/local/bin' Do not have write permissions on '/usr/local/bin'
I tried to say 'o conf LIB=~' also (in addition to INSTALLBASE) but got the error:

Warning: unknown configuration variable 'LIB=~'
I have tried installing with local::lib also, but have had no success as you can see here : http://www.perlmonks.org/?node_id=785906

Looking forward to more help !

Thanks.

Andy

Replies are listed 'Best First'.
Re^3: (Never Ending) Module Installation Issues
by ikegami (Patriarch) on Jun 08, 2010 at 20:39 UTC

    The INSTALLBASE wasn't used if you got that error. Maybe you're using an old version of the build tools. (I thought that gave a warning?) Try

    o conf makepl_arg 'PREFIX=~ LIB=~/lib/perl5'
      I set the INSTALLBASE, LIB and PREFIX, and after that tried to install Bundle::DBD::mysql from CPAN shell. What I noticed is that it is trying to connect to mysql using my username and password. It obviously does not have my password, and so is trying to login using blank password.

      I then try to install it manually using:

      perl Makefile.PL --testuser=andy --testpassword=password PREFIX=/home/ +andy
      After that it said:

      Note (probably harmless): No library found for -lmysqlclient

      After that when I try to "make" it, I get plenty of errors, first few lines of which are:

      dbdimp.h:22:49: error: mysql.h: No such file or directory + + dbdimp.h:23:45: error: mysqld_error.h: No such file or directory + + dbdimp.h:25:49: error: errmsg.h: No such file or directory
      Any suggestions?

      Thanks.

      Andy

        Remember when I said in the CB you needed to install the MySQL client developer's package if you're installing the client from your distro's repo? Well, that hasn't changed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://843730]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-24 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found