トップ
新規
一覧
単語検索
最終更新
ヘルプ
ログイン
アールメカブ
R_PowerPC
をテンプレートにして作成
開始行:
[[Rの備忘録]]
Intel Mac 版 R でパッケージを作成する場合,ppc 用のバイナ...
-- ppc で,パッケージ全体ではなく,ソースファイルのコンパ...
ところが,読み込みはできない.実行時の ppc 版 mecab ライ...
$ otool -L Library/R/2.8/library/RMeCab/libs/ppc/RMeCab....
Library/R/2.8/library/RMeCab/libs/ppc/RMeCab.so:
RMeCab.so (compatibility version 0.0.0, current v...
/Library/Frameworks/R.framework/Versions/2.8/Res...
libR.dylib (compatibility version 2.8.0, current ver...
/System/Library/Frameworks/CoreFoundation.framewo...
Versions/A/CoreFoundation (compatibility versi...
current version 476.17.0)
/usr/lib/libstdc++.6.dylib (compatibility version...
current version 7.4.0)
/usr/local/lib/libgcc_s.1.dylib (compatibility ve...
current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version...
current version 111.1.3)
intel Mac ではこうなる
$ otool -L Rlibs/RMeCab/libs/i386/RMeCab.so
Rlibs/RMeCab/libs/i386/RMeCab.so:
RMeCab.so (compatibility version 0.0.0, current version ...
/usr/local/lib/libmecab.1.dylib (compatibility version 2...
current version 2.0.0)
/Library/Frameworks/R.framework/Versions/2.8/Resources/
lib/libR.dylib (compatibility version 2.8.0,
current version 2.8.1)
/System/Library/Frameworks/CoreFoundation.framework/
Versions/A/CoreFoundation (compatibility versi...
current version 476.17.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0,
current version 7.4.0)
/usr/local/lib/libgcc_s.1.dylib (compatibility version 1...
current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 111.1.3)
-- Makefile を工夫しなければならない.
ただ,ライブラリだけ別にコンパイルして,intel Mac 版で作...
$ sudo gcc_select 3.3
$
$ export MACOSX_DEPLOYMENT_TARGET=10.4
$ R CMD SHLIB RMeCab/src/RMeCab.cpp -dynamiclib
-L/usr/local/lib -lmecab
$ cp RMeCab/src/RMeCab.so
~/Library/R/2.8/library/RMeCab/libs/ppc/
$ tar zcfv RMeCab_0.67.ppc.tgz RMeCab/
-- 動作確認には ppc 実機が必要だが,作成は intel 版でも可...
$ R_ARCH=/ppc R CMD SHLIB RMeCab.cpp -dynbamilib -L/usr/...
https://stat.ethz.ch/pipermail/r-help/2008-February/15540...
http://osdir.com/ml/lang.r.mac/2008-07/msg00005.html
https://stat.ethz.ch/pipermail/bioconductor/2008-November...
終了行:
[[Rの備忘録]]
Intel Mac 版 R でパッケージを作成する場合,ppc 用のバイナ...
-- ppc で,パッケージ全体ではなく,ソースファイルのコンパ...
ところが,読み込みはできない.実行時の ppc 版 mecab ライ...
$ otool -L Library/R/2.8/library/RMeCab/libs/ppc/RMeCab....
Library/R/2.8/library/RMeCab/libs/ppc/RMeCab.so:
RMeCab.so (compatibility version 0.0.0, current v...
/Library/Frameworks/R.framework/Versions/2.8/Res...
libR.dylib (compatibility version 2.8.0, current ver...
/System/Library/Frameworks/CoreFoundation.framewo...
Versions/A/CoreFoundation (compatibility versi...
current version 476.17.0)
/usr/lib/libstdc++.6.dylib (compatibility version...
current version 7.4.0)
/usr/local/lib/libgcc_s.1.dylib (compatibility ve...
current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version...
current version 111.1.3)
intel Mac ではこうなる
$ otool -L Rlibs/RMeCab/libs/i386/RMeCab.so
Rlibs/RMeCab/libs/i386/RMeCab.so:
RMeCab.so (compatibility version 0.0.0, current version ...
/usr/local/lib/libmecab.1.dylib (compatibility version 2...
current version 2.0.0)
/Library/Frameworks/R.framework/Versions/2.8/Resources/
lib/libR.dylib (compatibility version 2.8.0,
current version 2.8.1)
/System/Library/Frameworks/CoreFoundation.framework/
Versions/A/CoreFoundation (compatibility versi...
current version 476.17.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0,
current version 7.4.0)
/usr/local/lib/libgcc_s.1.dylib (compatibility version 1...
current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 111.1.3)
-- Makefile を工夫しなければならない.
ただ,ライブラリだけ別にコンパイルして,intel Mac 版で作...
$ sudo gcc_select 3.3
$
$ export MACOSX_DEPLOYMENT_TARGET=10.4
$ R CMD SHLIB RMeCab/src/RMeCab.cpp -dynamiclib
-L/usr/local/lib -lmecab
$ cp RMeCab/src/RMeCab.so
~/Library/R/2.8/library/RMeCab/libs/ppc/
$ tar zcfv RMeCab_0.67.ppc.tgz RMeCab/
-- 動作確認には ppc 実機が必要だが,作成は intel 版でも可...
$ R_ARCH=/ppc R CMD SHLIB RMeCab.cpp -dynbamilib -L/usr/...
https://stat.ethz.ch/pipermail/r-help/2008-February/15540...
http://osdir.com/ml/lang.r.mac/2008-07/msg00005.html
https://stat.ethz.ch/pipermail/bioconductor/2008-November...
ページ名: