in reply to Re^4: SQLite + free web hosting?
in thread SQLite + free web hosting?

Noone said anything about writing in the directories under perl's. Perl modules can be installed in any directory.

Replies are listed 'Best First'.
Re^6: SQLite + free web hosting?
by VMat (Novice) on Apr 13, 2009 at 21:26 UTC
    OK, I think I'm getting your point (again, I apologize if I missed the basic classes).

    If I put the binaries in my own directory in the web server, how can I make perl "see" them? Do I need to change @INC?

    Thanks again,

    Vini

      Yup. You can adjust @INC by using env var PERL5LIB or by using the lib module.

      For example, to install a module, I do

      perl Makefile.PL PREFIX=~ LIB=~/lib/perl5 make make test make install
      and I have the following in my ~/.bash_profile
      export PERL5LIB=~/lib/perl5

      But you can use lib in your script instead of using PERL5LIB.

      If it's a Windows host, you just grab a ppd file, unzip it (I think) and use use lib.

        OK, I'll give it a try.

        Thanks for your patience!

        VMat

        Hey ikegami, are you still there?

        I'm afraid I've picked the wrong hosting. Do they usually have a console available, where you can run system commands, in order to compile perl? This one doesn't, apparently. I don't even know what operating system they use (I believe it's Linux).

        (EDIT) I've just tried to add "use lib '.';" to a working script, it gave me an error page. I'm not sure if the compiler will be useful anyway.

        Again, I'd like a suggestion.

        Thank you,

        VMat