You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example code in example/user/tool/LZMA/Example.pm does not actually work.
It appears to work because the 'xz' program is already installed in my system. If I temporarily rename /usr/bin/xz then the example's lzma_version_string function returns undef.
I have Alien::xz v0.08 installed.
Most likely the problem is obvious; but I am newly trying to figure out Alien::Build and so don't know where to start. It would be helpful if the examples could be tested. Thanks.
#!/usr/bin/env perl
use strict; use warnings;
use File::Which;
BEGIN{
if (my $path = File::Which::which("xz")) {
die "$path exists;\n",
" You must rename or move it aside temporarily for this test\n";
}
}
use lib "/home/jima/src/Alien-Build-2.79/example/user/tool/lib";
use LZMA::Example qw(lzma_version_string);
my $s = lzma_version_string();
die "Result is undef" unless defined($s); # **DIES HERE**
print "GOT: $s\n";
The text was updated successfully, but these errors were encountered:
This is expected if Alien::xz detected the system xz when it was installed. If you force a share install (which will build xz) then you should get the built xz
The example code in
example/user/tool/LZMA/Example.pm
does not actually work.It appears to work because the 'xz' program is already installed in my system. If I temporarily rename /usr/bin/xz then the example's
lzma_version_string
function returns undef.I have Alien::xz v0.08 installed.
Most likely the problem is obvious; but I am newly trying to figure out Alien::Build and so don't know where to start. It would be helpful if the examples could be tested. Thanks.
The text was updated successfully, but these errors were encountered: