You are not logged in.

#1 2017-06-12 18:33:59

murat
Member
Registered: 2017-05-30
Posts: 7

Installing rakudo-star is failing

Here it is

$ pacaur -S rakudo-star  
:: Package rakudo-star not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...

AUR Packages  (1) rakudo-star-2017.04-2  

:: Proceed with installation? [Y/n] y
:: Retrieving package(s)...
:: rakudo-star build files are up-to-date -- skipping
:: Checking rakudo-star integrity...
==> Making package: rakudo-star 2017.04-2 (Tue Jun 13 02:32:26 HKT 2017)
==> Retrieving sources...
  -> Found rakudo-star-2017.04.tar.gz
==> Validating source files with sha512sums...
    rakudo-star-2017.04.tar.gz ... Passed
:: Building rakudo-star package(s)...
==> Making package: rakudo-star 2017.04-2 (Tue Jun 13 02:32:27 HKT 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Using /usr/bin/nqp-m (version 2017.05 / MoarVM 2017.05).

Creating Makefile ...
Cleaning up ...

You can now use 'make' to build Rakudo.
After that, 'make test' will run some tests and
'make install' will install Rakudo.
make: Nothing to be done for 'all'.
==> Entering fakeroot environment...
==> Starting package()...
cd rakudo && make install
make[1]: Entering directory '/home/user123/.cache/pacaur/rakudo-star/src/rakudo-star-2017.04/rakudo'
mkdir -p -- /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin
mkdir -p -- /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/nqp/lib/Perl6
cp -- blib/Perl6/ModuleLoader.moarvm blib/Perl6/World.moarvm blib/Perl6/Grammar.moarvm blib/Perl6/Ops.moarvm blib/Perl6/Actions.moarvm blib/Perl6/Optimizer.moarvm blib/Perl6/Pod.moarvm blib/Perl6/Compiler.moarvm blib/Perl6/Metamodel.moarvm blib/Perl6/BOOTSTRAP.moarvm blib/Perl6/DebugPod.moarvm /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/nqp/lib/Perl6
mkdir -p -- /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/perl6/lib
mkdir -p -- /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/perl6/runtime
cp -- CORE.setting.moarvm CORE.d.setting.moarvm RESTRICTED.setting.moarvm /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/perl6/runtime
cp -- perl6.moarvm perl6-debug.moarvm /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/perl6/runtime
mkdir -p -- /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/perl6/runtime/dynext
cp -- dynext/libperl6_ops_moar.so /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/perl6/runtime/dynext
./perl6-m tools/build/upgrade-repository.pl /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/perl6
./perl6-m tools/build/upgrade-repository.pl /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/perl6/vendor
./perl6-m tools/build/upgrade-repository.pl /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/perl6/site
./perl6-m tools/build/install-core-dist.pl /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/share/perl6
installed!
/usr/bin/moar --libpath="/usr/share/nqp/lib" --libpath="/usr/share/nqp/lib" perl6.moarvm --nqp-lib=blib tools/build/create-moar-runner.pl "/usr/bin/moar" perl6.moarvm /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6-m "/usr/share/perl6/runtime" "" "" "/usr/share/nqp/lib" "/usr/share/nqp/lib" "/usr/share/perl6/lib" "/usr/share/perl6/runtime"
/usr/bin/moar --libpath="/usr/share/nqp/lib" --libpath="/usr/share/nqp/lib" perl6.moarvm --nqp-lib=blib tools/build/create-moar-runner.pl "/usr/bin/moar" perl6-debug.moarvm /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6-debug-m "/usr/share/perl6/runtime" "" "" "/usr/share/nqp/lib" "/usr/share/nqp/lib" "/usr/share/perl6/lib" "/usr/share/perl6/runtime"
chmod -- 755 /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6-m
/usr/bin/moar --libpath="/usr/share/nqp/lib" --libpath="/usr/share/nqp/lib" perl6.moarvm --nqp-lib=blib tools/build/create-moar-runner.pl "/usr/bin/moar" perl6.moarvm /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6-gdb-m "/usr/share/perl6/runtime" "gdb" "" "/usr/share/nqp/lib" "/usr/share/perl6/lib" "/usr/share/perl6/runtime"
/usr/bin/moar --libpath="/usr/share/nqp/lib" --libpath="/usr/share/nqp/lib" perl6.moarvm --nqp-lib=blib tools/build/create-moar-runner.pl "/usr/bin/moar" perl6.moarvm /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6-valgrind-m "/usr/share/perl6/runtime" "valgrind" "" "/usr/share/nqp/lib" "/usr/share/perl6/lib" "/usr/share/perl6/runtime"
/usr/bin/moar --libpath="/usr/share/nqp/lib" --libpath="/usr/share/nqp/lib" perl6.moarvm --nqp-lib=blib tools/build/create-moar-runner.pl "/usr/bin/moar" perl6.moarvm /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6-m "/usr/share/perl6/runtime" "" "" "/usr/share/nqp/lib" "/usr/share/nqp/lib" "/usr/share/perl6/lib" "/usr/share/perl6/runtime"
cp -- /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6-m /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6
chmod -- 755 /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6
make[1]: Leaving directory '/home/user123/.cache/pacaur/rakudo-star/src/rakudo-star-2017.04/rakudo'
/usr/bin/perl -MExtUtils::Command -e cp /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6-m perl6
/usr/bin/perl -MExtUtils::Command -e chmod 755 perl6
== Installing modules for MoarVM
cd modules/zef && sh -c "PATH=/usr/bin:/home/user123/.gem/ruby/2.4.0/bin:/home/user123/.rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/bin:/home/user123/.rubies/ruby-2.4.0/bin:/usr/lib/hardening-wrapper/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/opt/cuda/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/user123/apps/rakudobrew/bin /home/user123/.cache/pacaur/rakudo-star/pkg/rakudo-star/usr/bin/perl6-m -Ilib bin/zef install ."
Unhandled exception: While looking for '/usr/share/perl6/runtime/perl6.moarvm': no such file or directory
make: *** [Makefile:66: modules-install-m] Error 1
==> ERROR: A failure occurred in package().
    Aborting...
:: failed to build rakudo-star package(s)

Offline

#2 2017-07-01 14:07:00

grandtheftjiujitsu
Member
Registered: 2013-07-27
Posts: 91

Re: Installing rakudo-star is failing

I am the package maintainer.  My apologies for the delayed response (I'm not active on the forums often).

This issue has been around for a while and it seems to come from the upstream. Specifically, Rakudo-Star's Makefile not respecting DESTDIR during the install() function of PKGBUILD.  I've been trying to hack a solution.  In the mean time, you can bootstrap rakudobrew and add the necessary components manually (instructions and source here).  This method doesn't require nqp or moarvm to previously be installed.

$ git clone https://github.com/tadzik/rakudobrew ~/.rakudobrew
$ echo 'export PATH=~/.rakudobrew/bin:$PATH' >> ~/.bashrc
$ source ~/.bashrc
$ rakudobrew build moar
$ rakudobrew build zef
$ curl -o ~/.rakudobrew/star-modules.txt https://raw.githubusercontent.com/rakudo/star/master/modules/MODULES.txt
$ zef install $(cat ~/.rakudobrew/star-modules.txt)
$ perl6

Offline

#3 2020-03-24 07:21:58

neoanima
Member
Registered: 2008-05-08
Posts: 40

Re: Installing rakudo-star is failing

==> Entering fakeroot environment...
==> Starting package()...
cd rakudo && make install
make[1]: Entering directory '/tmp/yaourt-tmp-eastasia/aur-rakudo-star/src/rakudo-star-2020.01/rakudo'
+++ Checking for moar NQP version
+++ Creating installation directories
+++ Removing old files
+++ Installing files
+++ Preparing installation
+++ MOAR BACKEND INSTALLED
+++ Installing MOAR launchers
+++ Creating Raku executable alias
+++ Rakudo installed succesfully!
make[1]: Leaving directory '/tmp/yaourt-tmp-eastasia/aur-rakudo-star/src/rakudo-star-2020.01/rakudo'
/usr/bin/perl -MExtUtils::Command -e cp /tmp/yaourt-tmp-eastasia/aur-rakudo-star/pkg/rakudo-star/usr/bin/perl6-m perl6
/usr/bin/perl -MExtUtils::Command -e chmod 755 perl6
== Installing modules for MoarVM
cd modules/zef && sh -c "PATH='/usr/bin:/home/eastasia/.aspera/connect/bin:/usr/local/bin:/usr/bin' /tmp/yaourt-tmp-eastasia/aur-rakudo-star/pkg/rakudo-star/usr/bin/perl6-m -Ilib bin/zef install ."
Unhandled exception: While looking for '/usr/share/perl6/runtime/perl6.moarvm': no such file or directory
make: *** [Makefile:66: modules-install-m] Error 1
==> ERROR: A failure occurred in package().
    Aborting...

hi, grandtheftjiujitsu, the problem is still there.
I checked the content of bin/zef file. only two lines.
the first line is used to find the "perl6" command. I think it doesn't respect the chroot environment, thus can't find the command.

Offline

Board footer

Powered by FluxBB