0
|
1 # macos 上で Raku を build する
|
|
2
|
|
3 git clone https://github.com/rakudo/rakudo.git
|
2
|
4
|
0
|
5 ## 以下を実行する
|
|
6
|
2
|
7 ```
|
|
8 export RB=/Users/one/src/Perl6/rakudo_build
|
|
9 export DYLD_FALLBACK_LIBRARY_PATH=$RB/lib
|
|
10 perl Configure.pl --prefix=$RB --gen-moar --gen-nqp --backends=moar --moar-option='--compiler=clang'
|
|
11 ```
|
|
12
|
|
13 失敗する
|
|
14
|
|
15 ## nqp/MoarVM/Configure.pl* を修正する
|
|
16
|
|
17 ```
|
|
18 diff --git a/Configure.pl b/Configure.pl
|
|
19 index 69351ff52..13d9b30c8 100755
|
|
20 --- a/Configure.pl
|
|
21 +++ b/Configure.pl
|
|
22 @@ -201,14 +201,14 @@ if ($^O eq 'darwin') {
|
|
23 if ($gnu_toolchain && $gnu_count != scalar @check_tools) {
|
|
24 print "\nNot all tools in the toolchain are GNU. Please correct this and retry.\n"
|
|
25 . "See README.markdown for more details.\n\n";
|
|
26 - exit -1;
|
|
27 + # exit -1;
|
|
28 }
|
|
29
|
|
30 ## Otherwise, make sure that none of them are GNU
|
|
31 elsif (!$gnu_toolchain && $gnu_count != 0) {
|
|
32 print "\nGNU tools detected, despite this not being a GNU-oriented build.\n"
|
|
33 ." Please correct this and retry. See README.markdown for more details.\n\n";
|
|
34 - exit -1;
|
|
35 + # exit -1;
|
|
36 }
|
|
37 }
|
|
38 ```
|
|
39
|
|
40 もう一度、
|
|
41
|
|
42 ```
|
|
43 perl Configure.pl --prefix=$RB --gen-moar --gen-nqp --backends=moar --moar-option='--compiler=clang'
|
|
44 ```
|
|
45
|
|
46 する。
|
|
47
|
|
48
|
|
49 ## おまけ
|
|
50
|
|
51 moar を --moar-option="-static" にしても、nqp-m とかが同じ問題を言ってくる。LD_LIBRARY_PATH ではダメらしい。
|
|
52
|
|
53 https://stackoverflow.com/questions/3146274/is-it-ok-to-use-dyld-library-path-on-mac-os-x-and-whats-the-dynamic-library-s |