[oe-users] Install CGI.pm in OE

Nelson Castillo nelsoneci at gmail.com
Thu Aug 9 06:38:20 UTC 2007


On 8/8/07, Nelson Castillo <nelsoneci at gmail.com> wrote:
> Hi :)
>
> I installed Perl (default .bb) and I'm trying to install the CGI module.
> How can I build the right package?

Well, I ended up copying the /lib directory that comes with the Perl Sources
and it works. I couldn't get to install the CGI:Session module.

I tried with the following command inside of OE:

  perl Makefile.PL install

But it couldn't locate re.pm in @INC. So I tried with the following BB:

  DESCRIPTION = "CGI::Session - persistent session data in CGI applications"
  SECTION = "libs"
  LICENSE = "Artistic|GPL"
  PR = "r0"

  SRC_URI = "http://search.cpan.org/CPAN/authors/id/S/SH/SHERZODR/CGI-Session-${PV}.tar.gz"

  S = "${WORKDIR}/CGI-Session-${PV}"

  inherit cpan


And it seems it worked. But when I use it in complains with:

   new(): failed: couldn't load CGI::Session::Driver::file: Can't
locate Fcntl.pm in @INC

Well, I don't know to provide this dependence. I guess I'll try to run PHP
(I don't like PHP) as CGI (The modphp package is crashing the apache2 forked
process when a file .php is requested) and try Perl again some other day
(or Python).

Regards.


-- 
http://arhuaco.org
http://emQbit.com




More information about the Openembedded-users mailing list