[lucy-user] 0.6.0 appears to be broken for Perl

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[lucy-user] 0.6.0 appears to be broken for Perl

Tilghman Lesher
Just tried installing Apache::Lucy for Perl, and the build appears to
be broken.  Specifically, although the Clownfish build, test, and
install runs successfully, the Lucy build cannot find the install of
Clownfish:


[tlesher@phpdev ~/ExternalPackages]$ tar xzf apache-lucy-0.6.0.tar.gz
[tlesher@phpdev ~/ExternalPackages]$ cd apache-lucy-0.6.0/perl/
[tlesher@phpdev ~/ExternalPackages/apache-lucy-0.6.0/perl]$ perl Build.PL
Checking prerequisites...
 requires:
   !  Clownfish is not installed
 build_requires:
   !  Clownfish is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
of the modules indicated above before proceeding with this installation

Run 'Build installdeps' to install missing prerequisites.

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Lucy' version '0.6.0'


It doesn't even work if I try to source Clownfish from the build directory:


[tlesher@phpdev ~/ExternalPackages/apache-lucy-0.6.0/perl]$ source
~/ExternalPackages/apache-clownfish-0.6.0/devel/bin/setup_env.sh
[tlesher@phpdev ~/ExternalPackages/apache-lucy-0.6.0/perl]$ perl Build.PL
Checking prerequisites...
 requires:
   !  Clownfish is not installed
 build_requires:
   !  Clownfish is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
of the modules indicated above before proceeding with this installation

Run 'Build installdeps' to install missing prerequisites.

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Lucy' version '0.6.0'


Perl is 5.20:

[tlesher@phpdev ~/ExternalPackages/apache-lucy-0.6.0/perl]$ perl -v

This is perl 5, version 20, subversion 3 (v5.20.3) built for
amd64-freebsd-thread-multi

Copyright 1987-2015, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[tlesher@phpdev ~/ExternalPackages/apache-lucy-0.6.0/perl]$


I can revert to using 0.4.2, as that version worked correctly, though
for obvious reasons, I'd rather use the latest version.

Am I doing something incorrectly or is this a bug?

--
Tilghman
Reply | Threaded
Open this post in threaded view
|

Re: [lucy-user] 0.6.0 appears to be broken for Perl

Nick Wellnhofer
On 07/10/2016 20:17, Tilghman Lesher wrote:

> Just tried installing Apache::Lucy for Perl, and the build appears to
> be broken.  Specifically, although the Clownfish build, test, and
> install runs successfully, the Lucy build cannot find the install of
> Clownfish:
>
>
> [tlesher@phpdev ~/ExternalPackages]$ tar xzf apache-lucy-0.6.0.tar.gz
> [tlesher@phpdev ~/ExternalPackages]$ cd apache-lucy-0.6.0/perl/
> [tlesher@phpdev ~/ExternalPackages/apache-lucy-0.6.0/perl]$ perl Build.PL
> Checking prerequisites...
>  requires:
>    !  Clownfish is not installed
>  build_requires:
>    !  Clownfish is not installed

It looks like Clownfish wasn't installed correctly. Or maybe some files from
your old installation of Clownfish 0.4.2 are picked up first?

What's the output of

     perl -MClownfish -le 'print $Clownfish::VERSION'

What's the output of `./Build install` when installing Clownfish?

> It doesn't even work if I try to source Clownfish from the build directory:
>
>
> [tlesher@phpdev ~/ExternalPackages/apache-lucy-0.6.0/perl]$ source
> ~/ExternalPackages/apache-clownfish-0.6.0/devel/bin/setup_env.sh

The setup_env.sh script is only for development.

Nick

Reply | Threaded
Open this post in threaded view
|

Re: [lucy-user] 0.6.0 appears to be broken for Perl

Tilghman Lesher
On Fri, Oct 7, 2016 at 2:03 PM, Nick Wellnhofer <[hidden email]> wrote:

> On 07/10/2016 20:17, Tilghman Lesher wrote:
>>
>> Just tried installing Apache::Lucy for Perl, and the build appears to
>> be broken.  Specifically, although the Clownfish build, test, and
>> install runs successfully, the Lucy build cannot find the install of
>> Clownfish:
>>
>>
>> [tlesher@phpdev ~/ExternalPackages]$ tar xzf apache-lucy-0.6.0.tar.gz
>> [tlesher@phpdev ~/ExternalPackages]$ cd apache-lucy-0.6.0/perl/
>> [tlesher@phpdev ~/ExternalPackages/apache-lucy-0.6.0/perl]$ perl Build.PL
>> Checking prerequisites...
>>  requires:
>>    !  Clownfish is not installed
>>  build_requires:
>>    !  Clownfish is not installed
>
>
> It looks like Clownfish wasn't installed correctly. Or maybe some files from
> your old installation of Clownfish 0.4.2 are picked up first?

Not possible.  This is a brand new server, with no previous
installation of Clownfish or Lucy.

> What's the output of
>
>     perl -MClownfish -le 'print $Clownfish::VERSION'

[tlesher@phpdev
~/ExternalPackages/apache-clownfish-0.6.0/runtime/perl]$ find
/usr/local/lib/perl5/site_perl -name Clownfish.pm
/usr/local/lib/perl5/site_perl/mach/5.20/Clownfish.pm
[tlesher@phpdev
~/ExternalPackages/apache-clownfish-0.6.0/runtime/perl]$ perl
-MClownfish -le 'print $Clownfish::VERSION'
Can't locate loadable object for module Clownfish in @INC (@INC
contains: /home/tlesher/ExternalPackages/apache-clownfish-0.6.0/runtime/perl/blib/lib
/home/tlesher/External
Packages/apache-clownfish-0.6.0/runtime/perl/blib/arch
/home/tlesher/ExternalPackages/apache-clownfish-0.6.0/compiler/perl/blib/lib
/home/tlesher/ExternalPackages/apache-cl
ownfish-0.6.0/compiler/perl/blib/arch
/home/tlesher/ExternalPackages/lucy-clownfish/runtime/perl/blib/lib
/home/tlesher/ExternalPackages/lucy-clownfish/runtime/perl/blib/ar
ch /home/tlesher/ExternalPackages/lucy-clownfish/compiler/perl/blib/lib
/home/tlesher/ExternalPackages/lucy-clownfish/compiler/perl/blib/arch
/usr/local/lib/perl5/site_perl
/mach/5.20 /usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.20/mach /usr/local/lib/perl5/5.20
/usr/local/lib/perl5/site_perl/5.20
/usr/local/lib/perl5/site_perl/5.20/m
ach .) at /home/tlesher/ExternalPackages/apache-clownfish-0.6.0/compiler/perl/blib/lib/Clownfish.pm
line 45.
BEGIN failed--compilation aborted at
/home/tlesher/ExternalPackages/apache-clownfish-0.6.0/compiler/perl/blib/lib/Clownfish.pm
line 45.
Compilation failed in require.
BEGIN failed--compilation aborted.

> What's the output of `./Build install` when installing Clownfish?

[tlesher@phpdev
~/ExternalPackages/apache-clownfish-0.6.0/compiler/perl]$ sudo perl
Build install
Building Clownfish-CFC
Building the Lemon parser generator...

Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree
Installing /usr/local/lib/perl5/site_perl/mach/5.20/auto/Clownfish/CFC/CFC.so
Installing /usr/local/lib/perl5/site_perl/man/man3/Clownfish::CFC.3
Installing /usr/local/lib/perl5/site_perl/man/man3/Clownfish::CFC::Perl::Build.3

>> It doesn't even work if I try to source Clownfish from the build
>> directory:
>>
>>
>> [tlesher@phpdev ~/ExternalPackages/apache-lucy-0.6.0/perl]$ source
>> ~/ExternalPackages/apache-clownfish-0.6.0/devel/bin/setup_env.sh
>
>
> The setup_env.sh script is only for development.

You may want to revise the Apache::Lucy INSTALL document, then, as it says:

It's also possible to build Lucy with an uninstalled Clownfish build from
the Clownfish source directory. To setup the required environment variables,
source the file devel/bin/setup_env.sh from the Clownfish source tree:

   $ source path_to_clownfish/devel/bin/setup_env.sh

>
> Nick
>

--
Tilghman
Reply | Threaded
Open this post in threaded view
|

Re: [lucy-user] 0.6.0 appears to be broken for Perl

Nick Wellnhofer

> On Oct 7, 2016, at 22:53 , Tilghman Lesher <[hidden email]> wrote:
>
>> What's the output of
>>
>>    perl -MClownfish -le 'print $Clownfish::VERSION'
>
> [tlesher@phpdev
> ~/ExternalPackages/apache-clownfish-0.6.0/runtime/perl]$ find
> /usr/local/lib/perl5/site_perl -name Clownfish.pm
> /usr/local/lib/perl5/site_perl/mach/5.20/Clownfish.pm
> [tlesher@phpdev
> ~/ExternalPackages/apache-clownfish-0.6.0/runtime/perl]$ perl
> -MClownfish -le 'print $Clownfish::VERSION'
> Can't locate loadable object for module Clownfish in @INC

So you’re running FreeBSD? There are some known build problems with 0.6.0 on BSD which will be fixed shortly. You should be able to install Lucy 0.6.0 on BSD using the following pre-release versions from CPAN:

https://cpan.metacpan.org/authors/id/N/NW/NWELLNHOF/Clownfish-CFC-0.6.0.tar.gz
https://cpan.metacpan.org/authors/id/N/NW/NWELLNHOF/Clownfish-0.6.0.3.tar.gz
https://cpan.metacpan.org/authors/id/N/NW/NWELLNHOF/Lucy-0.6.0_2.tar.gz

Or wait about two weeks for the 0.6.1 release.

Nick

Reply | Threaded
Open this post in threaded view
|

Re: [lucy-user] 0.6.0 appears to be broken for Perl

Tilghman Lesher
On Fri, Oct 7, 2016 at 4:18 PM, Nick Wellnhofer <[hidden email]> wrote:

>
>> On Oct 7, 2016, at 22:53 , Tilghman Lesher <[hidden email]> wrote:
>>
>>> What's the output of
>>>
>>>    perl -MClownfish -le 'print $Clownfish::VERSION'
>>
>> [tlesher@phpdev
>> ~/ExternalPackages/apache-clownfish-0.6.0/runtime/perl]$ find
>> /usr/local/lib/perl5/site_perl -name Clownfish.pm
>> /usr/local/lib/perl5/site_perl/mach/5.20/Clownfish.pm
>> [tlesher@phpdev
>> ~/ExternalPackages/apache-clownfish-0.6.0/runtime/perl]$ perl
>> -MClownfish -le 'print $Clownfish::VERSION'
>> Can't locate loadable object for module Clownfish in @INC
>
> So you’re running FreeBSD? There are some known build problems with 0.6.0 on BSD which will be fixed shortly. You should be able to install Lucy 0.6.0 on BSD using the following pre-release versions from CPAN:
>
> https://cpan.metacpan.org/authors/id/N/NW/NWELLNHOF/Clownfish-CFC-0.6.0.tar.gz
> https://cpan.metacpan.org/authors/id/N/NW/NWELLNHOF/Clownfish-0.6.0.3.tar.gz
> https://cpan.metacpan.org/authors/id/N/NW/NWELLNHOF/Lucy-0.6.0_2.tar.gz
>
> Or wait about two weeks for the 0.6.1 release.

Thank you.  That worked.

--
Tilghman