Skip to content

Instantly share code, notes, and snippets.

View stmuk's full-sized avatar

Steve Mynott stmuk

  • London and Suffolk, England
View GitHub Profile
Currently the best way to get an updated Perl 6 is to build from source.
To build from a tarball see http://rakudo.org/how-to-get-rakudo/
For convenience of path management and Perl 6 updates then the use of rakudobrew is recommended.
(see https://github.com/tadzik/rakudobrew).
Rakudobrew QUICKSTART for Linux/Mac
You will need recent versions of perl, git, make and gcc.
==> Bootstrapping Panda
==> Installing panda from a local directory 'C:\Users\steve\rakudo-star-2016.10\modules\panda'
==> panda depends on File::Find, Shell::Command, JSON::Fast, File::Which
==> Shell::Command depends on File::Find
==> Fetching File::Find
Failed to copy 'C:\Users\steve\rakudo-star-2016.10\modules\panda\ext\File__Find\lib\.precomp\5C95A0E5CB6B0D6AE0C3CF2F01FB91EB2A0053BA.1478969734.74589\23\230050DD873FA693E9BC32A8740BF66173DD5A1E.bc' to 'C:\Users\steve\rakudo-star-2016.10\modules\panda\.panda-work\1478969922_1/\lib\.precomp\5C95A0E5CB6B0D6AE0C3CF2F01FB91EB2A0053BA.1478969734.74589\23/230050DD873FA693E9BC32A8740BF66173DD5A1E.bc': Failed to copy file: operation not permitted
at gen/moar/m-CORE.setting:24539 (C:\rakudo/share/perl6/runtime/CORE.setting.moarvm:throw)
from gen/moar/m-CORE.setting:27161 (C:\rakudo/share/perl6/runtime/CORE.setting.moarvm:throw)
from gen/moar/m-CORE.setting:27209 (C:\rakudo/share/perl6/runtime/CORE.setting.moarvm:sink)
from C:\Users\steve\rakudo-star-2016.10
@stmuk
stmuk / gist:84b49fc92cba789e00112cf6c4ce9bfe
Created May 6, 2017 19:22
Build Rakudo Star 2017.04 on Raspberry PI and some other platforms which don't play well with telemeh
#!/bin/sh
PREFIX=/opt/star
cd MoarVM && perl Configure.pl --prefix=${PREFIX} --no-telemeh && make install
cd ../nqp && perl Configure.pl --prefix=${PREFIX} && make install
cd .. && perl Configure.pl --prefix=${PREFIX} && make install
% cat cpanfile
requires "B::Hooks::OP::Check" => '== 0.20';
#requires "B::Hooks::OP::Check" => '== 0.19';
requires "multidimensional";
smynott@pw-dev:~/temp/foo
% make
rm -rf local
carton
Installing modules using /home/smynott/temp/foo/cpanfile
Successfully installed ExtUtils-Depends-0.405
@stmuk
stmuk / gist:4b0ff3c1da129ad90c8509b77e1abdac
Created May 16, 2017 12:45
Possible error with Sirius?
% psql -dsirius_nightly
sirius_nightly=# begin;
update ml set cod='wibble00' where id=105284;
ERROR: function ml_fulltext(character varying, character varying, character varying, character varying, character varying, character varying, character varying, character varying, character varying, character varying, character varying, character varying) does not exist
LINE 3: ml_fulltext(NEW.cod, NEW.nam,
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: SELECT to_tsvector(
'pg_catalog.english',
ml_fulltext(NEW.cod, NEW.nam,
rm -rf ~/.perl6
rakudobrew nuke moar && rakudobrew build moar && rakudobrew build zef && zef install Template::Mustache
[...]
Done, built zef for moar-nom
===> Searching for: Template::Mustache
===> Searching for missing dependencies: JSON::Fast
===> Testing: JSON::Fast:ver('0.9.2')
===> Testing [OK] for JSON::Fast:ver('0.9.2')
===> Testing: Template::Mustache:auth('github:softmoth')
before upgrade: 2ec96eb8a266c9fed9a84b3af318362877e41d28
cmd: git config core.sharedRepository group
cmd: /usr/bin/git pull --prune [email protected]:sciencephotolibrary/juno.git master
From github.com:sciencephotolibrary/juno
* branch master -> FETCH_HEAD
Updating 2ec96eb..4cbc518
Fast-forward
db/schema.sql | 79 +++++++++++++
lib/PW/Schema.pm | 5 +
# LHS=nqp/MoarVM RHS=MoarVM
% diff Makefile ../../MoarVM/Makefile (git)-[heads/master]
19c19
< CONFIG = --optimize --prefix=/home/steve/sandbox/nqp/install --make-install
---
> CONFIG =
40,43c40,43
< PREFIX = /home/steve/sandbox/nqp/install
< BINDIR = /home/steve/sandbox/nqp/install/bin
steve@DESKTOP-VHR4CPP C:\Users\steve\2017.08\rakudo\nqp
> dir \Users\steve\2017.08\install\bin
Volume in drive C has no label.
Volume Serial Number is 0484-1A8F
Directory of C:\Users\steve\2017.08\install\bin
20/08/2017 11:59 <DIR> .
20/08/2017 11:59 <DIR> ..
20/08/2017 11:59 123,842 libmoar.dll.a
@stmuk
stmuk / gist:365b6cd98ed3e3083a256680f2369128
Created September 8, 2017 15:12
windows moar/nqp runtime error
> C:\Users\steve\temp\rakudo\install\bin\moar.exe --libpath="src/vm/moar/stage0" "src/vm/moar/stage0/nqp.moarvm" -e "print(nqp::backendconfig()<make>)"
Unhandled exception: Unable to allocate an array of 8 elements
at <unknown>:1 (src/vm/moar/stage0/ModuleLoader.moarvm:)
from <unknown>:1 (src/vm/moar/stage0/ModuleLoader.moarvm:<dependencies+deserialize>)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:<dependencies+deserialize>)
> gdb --args C:\Users\steve\temp\rakudo\install\bin\moar.exe --libpath="src/vm/moar/stage0" "src/vm/moar/stage0/nqp.moarvm" -e "print(nqp::backendconfig()<make>)"
[...]
Reading symbols from C:\Users\steve\temp\rakudo\install\bin\moar.exe...done.