このページを参考にさせていただきました。
http://web.archiveorange.com/archive/v/O4y3y38R1rIGN8BsR7hB
2014年1月24日金曜日
"/usr/bin/ld: cannot find -lperl"への対処
以下のエラーがでてしまった。
net-snmp-5.7.2# make
...
libtool: link: gcc -shared -fPIC -DPIC helpers/.libs/all_helpers.o helpers/.libs/baby_steps.o helpers/.libs/bulk_to_next.o helpers/.libs/cache_handler.o helpers/.libs/debug_handler.o helpers/.libs/instance.o helpers/.libs/mode_end_call.o helpers/.libs/multiplexer.o helpers/.libs/null.o helpers/.libs/old_api.o helpers/.libs/read_only.o helpers/.libs/row_merge.o helpers/.libs/scalar.o helpers/.libs/scalar_group.o helpers/.libs/serialize.o helpers/.libs/snmp_get_statistic.o helpers/.libs/stash_cache.o helpers/.libs/stash_to_next.o helpers/.libs/table.o helpers/.libs/table_array.o helpers/.libs/table_container.o helpers/.libs/table_data.o helpers/.libs/table_dataset.o helpers/.libs/table_iterator.o helpers/.libs/table_row.o helpers/.libs/table_tdata.o helpers/.libs/watcher.o .libs/agent_handler.o .libs/agent_index.o .libs/agent_read_config.o .libs/agent_registry.o .libs/agent_sysORTable.o .libs/agent_trap.o .libs/kernel.o .libs/snmp_agent.o .libs/snmp_vars.o mibgroup/snmpv3/.libs/usmConf.o mibgroup/agentx/.libs/master.o mibgroup/agentx/.libs/subagent.o mibgroup/utilities/.libs/execute.o mibgroup/utilities/.libs/iquery.o mibgroup/mibII/.libs/vacm_conf.o mibgroup/agentx/.libs/protocol.o mibgroup/agentx/.libs/client.o mibgroup/agentx/.libs/master_admin.o mibgroup/agentx/.libs/agentx_config.o -Wl,-rpath -Wl,net-snmp-5.7.2/snmplib/.libs ../snmplib/.libs/libnetsnmp.so -lrt -lcrypto -L/usr/local/lib -L/usr/lib/perl/5.14/CORE -lperl -ldl -lpthread -lc -lcrypt -lm -O2 -fstack-protector -Wl,-E -fstack-protector -Wl,-soname -Wl,libnetsnmpagent.so.30 -o .libs/libnetsnmpagent.so.30.0.2
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [libnetsnmpagent.la] Error 1
make[1]: Leaving directory `net-snmp-5.7.2/agent'
make: *** [subdirs] Error 1
以下の記事を参考にさせていただき、
解決!
2013年12月19日木曜日
The package index files are corrupted. No Filename: field for package ubuntu-keyring
以下のようなエラーに遭遇した。
rm -r /var/lib/apt/lists/partial
では解決しなかった。
なので、以下のURLをみて、
http://swinky-linuxblog.blogspot.jp/2008/10/apt-get-problem-package-index-files-are.html
元のフォルダまるごととっておくつもりで、以下を実行。
mv /var/lib/apt/lists /var/lib/apt/lists.org
で、エラーがでた。
この場合、"aptitude update"ではだめみたいで、"apt-get update"なら正常に実行できた。
# aptitude upgrade
...
E: The package index files are corrupted. No Filename: field for package ubuntu-keyring.
E: The package index files are corrupted. No Filename: field for package ubuntu-keyring.
E: Internal error: couldn't generate list of packages to download
rm -r /var/lib/apt/lists/partial
では解決しなかった。
なので、以下のURLをみて、
http://swinky-linuxblog.blogspot.jp/2008/10/apt-get-problem-package-index-files-are.html
元のフォルダまるごととっておくつもりで、以下を実行。
mv /var/lib/apt/lists /var/lib/apt/lists.org
で、エラーがでた。
# aptitude update
E: Could not open lock file /var/lib/apt/lists/lock - open (2: No such file or directory)
E: Couldn't lock list directory..are you root?
この場合、"aptitude update"ではだめみたいで、"apt-get update"なら正常に実行できた。
2013年11月21日木曜日
AsciiDocでのフィルターの置き場所
asciidocでフィルター「asciidoc-ditaa-filter」を置くのに、以下を参照した。
http://www.methods.co.nz/asciidoc/chunked/ch33.html
私が使っているUbuntuの場合、場所は「/etc/asciidoc/filters/」が正解だったようです。
http://www.methods.co.nz/asciidoc/chunked/ch33.html
私が使っているUbuntuの場合、場所は「/etc/asciidoc/filters/」が正解だったようです。
登録:
投稿 (Atom)


