pablrod / p5-alien-xgboost Goto Github PK
View Code? Open in Web Editor NEWAlien package to find, and build if necessary XGBoost library
Alien package to find, and build if necessary XGBoost library
Now the installation fails in because the test 20-xgboost_command.t
can't execute xgboost
command because it lacks the executable flag.
I'm going to revert back to use %{cp}
helper that preserves this.
The library seems to work fine without the executable flag.
After this I'm going to make a new release because there are a lot of fails in CPAN Testers (see Matrix
XGBoost works on windows (see: https://ci.appveyor.com/project/tqchen/xgboost). It's using MSVC but at least this package should support Strawberry Perl
I'm not able to make a working system install.
When I return 'system' from probe phase then the installed Alien::XGBoost
module has dynamic_libs
empty.
I've tried with this gather phase:
probe sub {
($library) = FFI::CheckLib::find_lib_or_die(lib => 'xgboost',
verify => sub {
my($name, $libpath) = @_;
my $platypus = FFI::Platypus->new;
$platypus->lib($libpath);
# This function was defined recently
my $f = $platypus->function('XGDMatrixCreateFromMat_omp', [] => 'int');
}
);
return (defined $library ? 'system' : 'share');
};
sys {
gather sub {
my ($build) = @_;
$build->runtime_prop->{dynamic} = $library
};
};
XGBoost CMake fails without OpenMP support. This is a known issue and there is a pull request in progress dmlc/xgboost#2613
I'm going to wait to the pull request being merged. But if it's not merged by October 1st, I'll add a check in the alienfile.
This was detected thanks to CPAN Testers!! See for example: Perl 5.27.3 FreeBSD or better the full matrix
I'm unable to install the Alien::XGBoost library using the default installation of strawberry perl on windows 10. I'm using the 64-bit version of strawberry perl. When installing Alien::XGBoost, I receive an error on line 49 in the commandsequence.pm file as shown below.
gmake[1]: Leaving directory 'C:/STRAWB~1/cpan/build/Alien-XGBoost-0.04-1/_alien/build_wYwS'
Alien::Build::CommandSequence> + md "C:/STRAWB~1/cpan/build/Alien-XGBoost-0.04-1/blib/lib/auto/share/dist/Alien-XGBoost/dynamic"
Alien::Build::CommandSequence> + md "C:/STRAWB~1/cpan/build/Alien-XGBoost-0.04-1/blib/lib/auto/share/dist/Alien-XGBoost/bin"
Alien::Build::CommandSequence> + copy xgboost.exe C:/STRAWB~1/cpan/build/Alien-XGBoost-0.04-1/blib/lib/auto/share/dist/Alien-XGBoost/bin/
The syntax of the command is incorrect.
external command failed at C:/Strawberry/perl/site/lib/Alien/Build/CommandSequence.pm line 49.
gmake: *** [Makefile:2881: _alien/mm/build] Error 2
PABLROD/Alien-XGBoost-0.04.tar.gz
C:\STRAWB~1\c\bin\gmake.exe -- NOT OK
Stopping: 'install' failed for 'Alien::XGBoost'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.