{"id":552,"date":"2010-01-09T20:26:58","date_gmt":"2010-01-10T02:26:58","guid":{"rendered":"http:\/\/75.134.27.61:8101\/wordpress\/?p=552"},"modified":"2012-08-14T20:49:02","modified_gmt":"2012-08-15T01:49:02","slug":"solvedshared-object-libtokyocabinet-so-8-not-found","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/solvedshared-object-libtokyocabinet-so-8-not-found\/","title":{"rendered":"[Solved]Shared object &#8220;libtokyocabinet.so.8&#8221; not found"},"content":{"rendered":"<p>After upgrading the Tokyo Cabinet on my FreeBSD 8 system, I could not start Tokyo Cabinet:<\/p>\n<pre>\r\nttserver\r\n\/libexec\/ld-elf.so.1: Shared object \"libtokyocabinet.so.8\" not found, required by \"ttserver\"\r\n<\/pre>\n<p>After some investigations, I solved the problem.<\/p>\n<p>1. First, go to the library directory. In my case, it is <strong>\/usr\/local\/lib<\/strong>.<\/p>\n<pre>\r\ncd \/usr\/local\/lib\r\n<\/pre>\n<p>2. Display all the <strong>libtokyocabinet.so<\/strong>:<\/p>\n<pre>\r\nls libtokyocabinet.so*\r\n<\/pre>\n<p>which returns:<\/p>\n<pre>\r\nlrwxr-xr-x  1 root  wheel    24B Jan  9 20:17 libtokyocabinet.so -> libtokyocabinet.so.9.4.0\r\nlrwxr-xr-x  1 root  wheel    24B Jan  9 20:17 libtokyocabinet.so.9 -> libtokyocabinet.so.9.4.0\r\n-rwxr-xr-x  1 root  wheel   778K Jan  9 20:17 libtokyocabinet.so.9.4.0\r\n<\/pre>\n<p>So the solution to this problem is pretty obvious. The application is looking for libtokyocabinet.so.8 but a newer version of this library is available. A soft-link is good enough to solve this problem:<\/p>\n<pre>\r\nsudo ln -s libtokyocabinet.so libtokyocabinet.so.8\r\n<\/pre>\n<p>Here is the expected result:<\/p>\n<pre>\r\nls libtokyocabinet.so*\r\nlrwxr-xr-x  1 root  wheel    24B Jan  9 20:17 libtokyocabinet.so -> libtokyocabinet.so.9.4.0\r\nlrwxr-xr-x  1 root  wheel    18B Jan  9 20:26 libtokyocabinet.so.8 -> libtokyocabinet.so\r\nlrwxr-xr-x  1 root  wheel    24B Jan  9 20:17 libtokyocabinet.so.9 -> libtokyocabinet.so.9.4.0\r\n-rwxr-xr-x  1 root  wheel   778K Jan  9 20:17 libtokyocabinet.so.9.4.0\r\n<\/pre>\n<p>Now I run the Tokyo Cabinet again, and the problem is gone!<\/p>\n<pre>\r\nttserver\r\n2010-01-09T20:26:12-06:00       SYSTEM  --------- logging started [13244] --------\r\n2010-01-09T20:26:12-06:00       SYSTEM  server configuration: host=(any) port=1978\r\n2010-01-09T20:26:12-06:00       SYSTEM  opening the database: *\r\n2010-01-09T20:26:12-06:00       SYSTEM  service started: 13244\r\n2010-01-09T20:26:12-06:00       INFO    timer thread 1 started\r\n2010-01-09T20:26:12-06:00       INFO    worker thread 1 started\r\n2010-01-09T20:26:12-06:00       INFO    worker thread 2 started\r\n2010-01-09T20:26:12-06:00       INFO    worker thread 3 started\r\n2010-01-09T20:26:12-06:00       INFO    worker thread 4 started\r\n2010-01-09T20:26:12-06:00       INFO    worker thread 5 started\r\n2010-01-09T20:26:12-06:00       INFO    worker thread 6 started\r\n2010-01-09T20:26:12-06:00       INFO    worker thread 7 started\r\n2010-01-09T20:26:12-06:00       INFO    worker thread 8 started\r\n2010-01-09T20:26:12-06:00       SYSTEM  listening started\r\n<\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After upgrading the Tokyo Cabinet on my FreeBSD 8 system, I could not start Tokyo Cabinet: ttserver \/libexec\/ld-elf.so.1: Shared object &#8220;libtokyocabinet.so.8&#8221; not found, required by &#8220;ttserver&#8221; After some investigations, I <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/solvedshared-object-libtokyocabinet-so-8-not-found\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94,7,144,6],"tags":[27],"class_list":["post-552","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-freebsd","category-sever-problem","category-technology","tag-tokyo-cabinet"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-8U","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3539,"url":"https:\/\/icesquare.com\/wordpress\/freebsdshared-object-libaprutil-1-so-5-not-found-required-by-httpd\/","url_meta":{"origin":552,"position":0},"title":"[FreeBSD]Shared object &#8220;libaprutil-1.so.5&#8221; not found, required by &#8220;httpd&#8221;","author":"Derrick","date":"June 11, 2014","format":false,"excerpt":"I upgraded the Apache to 2.2.27 on my FreeBSD box via portmaster. The upgrade went very smooth. After the upgrade, I decide to test the Apache by restarting the server. Oh well, I got the following error message: [FreeBSD]Shared object \"libaprutil-1.so.5\" not found, required by \"httpd\" Oh well, looks like\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1489,"url":"https:\/\/icesquare.com\/wordpress\/php-warning-php-startup-unable-to-load-dynamic-library-usrlocallibphp20090626tokyo_tyrant-so-usrlocallibphp20090626tokyo_tyrant-so-undefined-symbol-ps_globals-in-unknown-on-l\/","url_meta":{"origin":552,"position":1},"title":"PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;\/usr\/local\/lib\/php\/20090626\/tokyo_tyrant.so&#8217; &#8211; \/usr\/local\/lib\/php\/20090626\/tokyo_tyrant.so: Undefined symbol &#8220;ps_globals&#8221; in Unknown on line 0","author":"Derrick","date":"August 23, 2011","format":false,"excerpt":"Every time I upgrade the PHP and related extensions, I always run into the same problem with some PHP-PECL modules. Recently with the new release of PHP 5.3.7, there is no exception for the trouble. So what kind of trouble I have today? The Tokyo Tyrant (The middleman between my\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"\/wordpress\/wp-content\/uploads\/2011\/08\/tokyocabinet.png","width":350,"height":200},"classes":[]},{"id":3023,"url":"https:\/\/icesquare.com\/wordpress\/freebsdmysql-server-could-not-start\/","url_meta":{"origin":552,"position":2},"title":"[FreeBSD]MySQL server could not start","author":"Derrick","date":"November 22, 2012","format":false,"excerpt":"Today, I noticed that the MySQL server on my FreeBSD server is down for unknown reason, and today is Thanksgiving. Initially, I tried to restart the MySQL server using the following command, but it didn't help to restart the MySQL: sudo \/usr\/local\/etc\/rc.d\/mysql-server restart and it gives me the following error\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1629,"url":"https:\/\/icesquare.com\/wordpress\/rm-varempty-operation-not-permitted\/","url_meta":{"origin":552,"position":3},"title":"rm: \/var\/empty: Operation not permitted","author":"Derrick","date":"September 29, 2011","format":false,"excerpt":"I was trying to remove a folder at \/var\/empty with no success (Operation not permitted): ls -al dr-xr-xr-x 2 root wheel 512B Jul 18 2010 empty sudo rm -Rf empty rm: \/var\/empty: Operation not permitted So I decided to change the permission: sudo chmod a+rw empty\/ and it did not\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3596,"url":"https:\/\/icesquare.com\/wordpress\/shared-object-libsqlite3-so-8-not-found\/","url_meta":{"origin":552,"position":4},"title":"Shared object &#8220;libsqlite3.so.8&#8221; not found","author":"Derrick","date":"July 1, 2014","format":false,"excerpt":"I noticed some weird thing on my server today. When I ran some PHP code, I got the following error: PHP Warning: PHP Startup: Unable to load dynamic library '\/usr\/local\/lib\/php\/20121212-zts\/pdo_sqlite.so' - Shared object \"libsqliteo_sqlite.so\" in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '\/usr\/local\/lib\/php\/20121212-zts\/pdo_sqlite.so' - Shared\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2777,"url":"https:\/\/icesquare.com\/wordpress\/solvedproblem-to-update-openldap-in-freebsd\/","url_meta":{"origin":552,"position":5},"title":"[Solved]Problem to Update OpenLDAP in FreeBSD","author":"Derrick","date":"April 29, 2012","format":false,"excerpt":"Recently, I found the following error message when updating my FreeBSD system regarding to the OpenLDAP: ===> Installing for openldap-client-2.4.31 ===> Generating temporary packing list ===> Checking if net\/openldap24-client already installed ===> Creating users and\/or groups. Using existing group `ldap'. Creating user `ldap' with uid `389'. pw: user 'ldap' already\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=552"}],"version-history":[{"count":9,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":2916,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/552\/revisions\/2916"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}