Turing Complete FM https://turingcomplete.fm/ いいよねー
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
Running 'compile' for libxml2 2.9.7... ERROR, review
... compile.log'
to see what happened. Last lines are:
========================================================================
In file included from threads.c:28:0:
/usr/pkg/include/pthread.h:382:18: warning: redundant redeclaration of
'pthread_atfork' [-Wredundant-decls]
extern int pthread_atfork(void (*)(void), void (*)(void), void
(*)(void));
^
In file included from threads.c:22:0:
むー
$ bundle config build.nokogiri --use-system-libraries
うりゃ
しょぼん
Building nokogiri using system libraries.
pkg-config could not be used to find libxml-2.0
/usr/pkg/include/pthread.h:285:42: error: conflicting types for 'pthread_t'
/usr/include/pthread_types.h:65:30: note: previous declaration of 'pthread_t' was here
こっちかー
そっかー。ネイティブな拡張ライブラリを作っちゃうと今のディレクトリがprefixに入っちゃうからディレクトリ名を変えて移動させられなくなるな
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
イマココ:
- configureに--enable-load-relativeオプションを渡せばvendor/bundleの絶対パスが変わってもネイティブ拡張ライブラリが動き続けるらしい
- nokogiri内のlibxml2のconfigureに--without-threadsオプションを渡せばlibxml2のthreads.loのビルドが通るっぽい
やること:
bundle installからconfigureにオプションを渡す方法を探す
このアカウントは、notestockで公開設定になっていません。
bundle config --local build.nokogiri --without-threads
じゃ伝わらないのう。
libxml2を野良ビルドしてみてるよ
ld: warning: libpthread.so.1, needed by /usr/pkg/lib/liblzma.so, may conflict with libpthread.so.20
./.libs/libxml2.a(encoding.o): In function `xmlIconvWrapper':
/sdf/arpa/tz/z/zunda/local/src/libxml2-2.9.7/encoding.c:1811: undefined reference to `libiconv'
:
むー
$ cd ~/local/src
$ tar zxf ../packages/libxml2-2.9.7.tar.gz
$ cd libxml2-2.9.7
$ ./configure --enable-static --disable-shared --without-python \
--without-readline --without-iconv --with-c14n --prefix=$HOME/local \
--without-threads
$ make
$ make install
して
$ bundle config build.nokogiri --use-system-libraries \
--with-xml2-include=$HOME/local/include/libxml2
したら
$ bundle install --path=vendor/bundle
でnokogiriはいったよ!
駄菓子菓子。ffiもpthread関連で再びpthreadのヘッダに嫌われてる
/usr/pkg/include/pthread.h:285:42: error: conflicting types for 'pthread_t'
typedef struct pthread_st *pthread_t;
^
In file included from /usr/include/sys/types.h:360:0,
from AbstractMemory.c:32:
/usr/include/pthread_types.h:65:30: note: previous declaration of 'pthread_t' was here
typedef struct __pthread_st *pthread_t;
^
/arpa/tz/z/zunda/local/src/cowsayで
gem 'cowsay'
してbundle install --path vendor/bundleしておいて
#!/usr/pkg/bin/ruby23
Gem.use_paths('/arpa/tz/z/zunda/.gem/ruby/2.3.0', Gem.path)
$:.unshift('/arpa/tz/z/zunda/local/lib/ruby/site_ruby')
require 'limitload-cgi'
Dir.chdir('/arpa/tz/z/zunda/local/src/cowsay') do
require 'bundler/setup'
end
require 'cowsay'
puts "Content-type: text/plain\n\n#{Cowsay.say("Hello world.", nil)}\n"
みたいのが動くようにはなった。
あとはtDiaryでbundle installが通れば…!!※遠い
サマーウォーズの小磯健二君はひょっとしたら頑張ればtelnetでTLS話せるかもしれない
telnetでTLS話す人、脳内時計がNTPで同期している必要がありそう
このアカウントは、notestockで公開設定になっていません。
GE製の原子力発電所で今世紀上半期まで運用予定のPDP-11くんほんとすき