January 23, 2016
Pukiwiki, Gollum

PukiWikiのwikiディレクトリ内にあるテキストファイルをmarkdownになんとかして変換する #

lsx みたいなプラグインが欲しい #

編集日時がコミットした日付に変わってしまうのが悲しい #

code blockにファイル名を付けたい #

5.xに更新 #

% uname -mrs
FreeBSD 13.1-RELEASE amd64

# pkg install ruby
% ruby -v
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [amd64-freebsd13]

# pkg install ruby30-gems
% gem -v

# gem install gollum
% ~/.gem/ruby/3.0/bin/gollum -v
Gollum 5.3.0

% ~/.gem/ruby/3.0/bin/gollum
ld-elf.so.1: /usr/home/wiki/.gem/ruby/3.0/gems/rugged-1.1.1/lib/rugged/rugged.so: Undefined symbol "libssh2_init"

# pkg version -n libssh2 -v
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
libssh2-1.10.0,3                   =   up-to-date with remote


rugged.so: Undefined symbol “libssh2_init” #

% pkg-config --libs --static vendor/libgit2/build/libgit2.pc
Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openssl', required by 'libgit2', not found
  • /usr/lib/libssl.*は存在するが、これはpkg-configには出てこない?
  • 別途インストールする
# pkg install openssl
% pkg-config --libs --static vendor/libgit2/build/libgit2.pc
-L/usr/local/lib -lgit2 -lrt -lpthread -lz -L/usr/local/lib -lssh2 -L/usr/local/lib -lssl -L/usr/local/lib -pthread -lcrypto -pthread
  • ruggedを再インストール
% gem pristine rugged
Restoring gems to pristine condition...
Building native extensions. This could take a while...
Restored rugged-1.1.1

% ldd ~/.gem/ruby/3.0/gems/rugged-1.1.1/lib/rugged/rugged.so
        librt.so.1 => /usr/lib/librt.so.1 (0x8015ed000)
        libthr.so.3 => /lib/libthr.so.3 (0x801e00000)
        libz.so.6 => /lib/libz.so.6 (0x801e2e000)
        libssh2.so.1 => /usr/local/lib/libssh2.so.1 (0x801e4b000)
        libssl.so.11 => /usr/local/lib/libssl.so.11 (0x801e8a000)
        libcrypto.so.11 => /usr/local/lib/libcrypto.so.11 (0x801f22000)
        libruby30.so.30 => /usr/local/lib/libruby30.so.30 (0x802218000)
        libm.so.5 => /lib/libm.so.5 (0x8025c6000)
        libc.so.7 => /lib/libc.so.7 (0x801083000)
        libssl.so.111 => /usr/lib/libssl.so.111 (0x802601000)
        libcrypto.so.111 => /lib/libcrypto.so.111 (0x802699000)
        libunwind.so.8 => /usr/local/lib/libunwind.so.8 (0x80298c000)
        libexecinfo.so.1 => /usr/lib/libexecinfo.so.1 (0x8015f6000)
        libprocstat.so.1 => /usr/lib/libprocstat.so.1 (0x8029a6000)
        libdl.so.1 => /usr/lib/libdl.so.1 (0x8015fc000)
        libcrypt.so.5 => /lib/libcrypt.so.5 (0x8029b4000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x8029d5000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x8029ef000)
        libelf.so.2 => /lib/libelf.so.2 (0x801068000)
        libkvm.so.7 => /lib/libkvm.so.7 (0x802a1b000)
        libutil.so.9 => /lib/libutil.so.9 (0x802a30000)
        libmd.so.6 => /lib/libmd.so.6 (0x802a48000)