{"id":3539,"date":"2014-06-11T11:40:27","date_gmt":"2014-06-11T16:40:27","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=3539"},"modified":"2014-07-06T14:08:57","modified_gmt":"2014-07-06T19:08:57","slug":"freebsdshared-object-libaprutil-1-so-5-not-found-required-by-httpd","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/freebsdshared-object-libaprutil-1-so-5-not-found-required-by-httpd\/","title":{"rendered":"[FreeBSD]Shared object &#8220;libaprutil-1.so.5&#8221; not found, required by &#8220;httpd&#8221;"},"content":{"rendered":"<p>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:<\/p>\n<div style=\"margin-bottom:80px;\"> <\/div>\n<pre>[FreeBSD]Shared object \"libaprutil-1.so.5\" not found, required by \"httpd\"<\/pre>\n<p>Oh well, looks like libaprutil-1.so.5 is missing. How about I create this file by soft-linking from the newer version, such as libaprutil-1.so.6, libaprutil-1.so.7 etc. However, when I check the lib directory, I don&#8217;t see anything like that.<\/p>\n<pre>\r\n#\/usr\/local\/lib\r\n-rw-r--r--  1 root  wheel   251k Jun 11 10:58 libaprutil-1.a\r\n-rwxr-xr-x  1 root  wheel   961B Jun 11 10:58 libaprutil-1.la\r\nlrwxr-xr-x  1 root  wheel    21B Jun 11 10:58 libaprutil-1.so -> libaprutil-1.so.0.5.3\r\nlrwxr-xr-x  1 root  wheel    21B Jun 11 10:58 libaprutil-1.so.0 -> libaprutil-1.so.0.5.3\r\n-rwxr-xr-x  1 root  wheel   148k Jun 11 10:58 libaprutil-1.so.0.5.3\r\n<\/pre>\n<p>Looks like it is not that simple to solve the problem. After couple trials and errors, I came up a solution. First, I need to reinstall the Apache, and then I need to reinstall Apr1.<\/p>\n<pre>\r\ncd \/usr\/local\/www\/apache22\r\nmake\r\n<\/pre>\n<p>Notice that I compile the file without installing it. That&#8217;s because I want to check the library dependence.<\/p>\n<pre>\r\ncd \/usr\/ports\/www\/apache22\/work\/httpd-2.2.27\r\nldd .\/httpd\r\n.\/httpd:\r\n        libm.so.5 => \/lib\/libm.so.5 (0x80087d000)\r\n        libpcre.so.3 => \/usr\/local\/lib\/libpcre.so.3 (0x800a9e000)\r\n        libaprutil-1.so.0 => \/usr\/local\/lib\/libaprutil-1.so.0 (0x800d02000)\r\n        libdb-4.8.so.0 => \/usr\/local\/lib\/libdb-4.8.so.0 (0x800f27000)\r\n        libgdbm.so.4 => \/usr\/local\/lib\/libgdbm.so.4 (0x801299000)\r\n        libexpat.so.6 => \/usr\/local\/lib\/libexpat.so.6 (0x8014a4000)\r\n        libiconv.so.3 => \/usr\/local\/lib\/libiconv.so.3 (0x8016c8000)\r\n        libapr-1.so.0 => \/usr\/local\/lib\/libapr-1.so.0 (0x8019c4000)\r\n        libcrypt.so.5 => \/lib\/libcrypt.so.5 (0x801bf5000)\r\n        libthr.so.3 => \/lib\/libthr.so.3 (0x801e14000)\r\n        libc.so.7 => \/lib\/libc.so.7 (0x802037000)\r\n        libapr-1.so.5 => not found (0)\r\n        libintl.so.9 => \/usr\/local\/lib\/libintl.so.9 (0x802392000)\r\n<\/pre>\n<p>So it is libaprutil-1.so.0, which is what we have in \/usr\/local\/lib\/. That&#8217;s good. Now we can hit the install button.<\/p>\n<pre>\r\ncd \/usr\/ports\/www\/apache22\/\r\nmake reinstall\r\n<\/pre>\n<p>So let&#8217;s try to run Apache again. Looks like we got a different error message:<\/p>\n<pre>\r\n\/usr\/local\/etc\/rc.d\/apache22 restart\r\nPerforming sanity check on apache22 configuration:\r\nShared object \"libapr-1.so.5\" not found, required by \"libaprutil-1.so.0\"\r\n<\/pre>\n<p>It&#8217;s okay. Let&#8217;s do something similar to the apr1:<\/p>\n<pre>\r\ncd \/usr\/ports\/devel\/apr1\/\r\nmake reinstall\r\n<\/pre>\n<p>Try to restart Apache again. The problem should be gone:<\/p>\n<pre>\r\n\/usr\/local\/etc\/rc.d\/apache22 restart\r\nPerforming sanity check on apache22 configuration:\r\nSyntax OK\r\nStopping apache22.\r\nWaiting for PIDS: 1022.\r\nPerforming sanity check on apache22 configuration:\r\nSyntax OK\r\nStarting apache22.\r\n<\/pre>\n<p>Hope my solutions help!<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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. <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/freebsdshared-object-libaprutil-1-so-5-not-found-required-by-httpd\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","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":true,"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,146,7,144,6,69],"tags":[8,171],"class_list":["post-3539","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-everyday-computer-problem","category-freebsd","category-sever-problem","category-technology","category-troubleshooting-technology","tag-apache","tag-freebsd"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-V5","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":552,"url":"https:\/\/icesquare.com\/wordpress\/solvedshared-object-libtokyocabinet-so-8-not-found\/","url_meta":{"origin":3539,"position":0},"title":"[Solved]Shared object &#8220;libtokyocabinet.so.8&#8221; not found","author":"Derrick","date":"January 9, 2010","format":false,"excerpt":"After upgrading the Tokyo Cabinet on my FreeBSD 8 system, I could not start Tokyo Cabinet: ttserver \/libexec\/ld-elf.so.1: Shared object \"libtokyocabinet.so.8\" not found, required by \"ttserver\" After some investigations, I solved the problem. 1. First, go to the library directory. In my case, it is \/usr\/local\/lib. cd \/usr\/local\/lib 2. Display\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":1561,"url":"https:\/\/icesquare.com\/wordpress\/apache-wont-start-after-upgrading-to-2-2-21-in-freebsd-8-2\/","url_meta":{"origin":3539,"position":1},"title":"Apache won&#8217;t start after upgrading to 2.2.21 in FreeBSD 8.2","author":"Derrick","date":"September 15, 2011","format":false,"excerpt":"Apache 2.2.21 was rolled out today. Since it has some security fixes, I decide to put a new version on my server farm. I didn't know that it becomes a small headache today morning. The upgrade was running smooth, no error messages, no complaints, until I restart the Apache server\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\/09\/connectionReset.png","width":350,"height":200,"srcset":"\/wordpress\/wp-content\/uploads\/2011\/09\/connectionReset.png 1x, \/wordpress\/wp-content\/uploads\/2011\/09\/connectionReset.png 1.5x"},"classes":[]},{"id":31,"url":"https:\/\/icesquare.com\/wordpress\/installing-apache-php-mysql-and-memcached-on-freebsd\/","url_meta":{"origin":3539,"position":2},"title":"Installing Apache, PHP, MySQL and MemCached on FreeBSD","author":"Derrick","date":"May 19, 2009","format":false,"excerpt":"This is my note on how to to install Apache, PHP, MySQL and MemCached on a FreeBSD 7 Box. 1. MySQL Go to the mysql52-server port directory by typing the command: cd \/usr\/ports\/databases\/mysql51-server Build the port by typing: make BUILD_OPTIMIZED=yes BUILD_STATIC=yes Using these two options will speed up the execution\u2026","rel":"","context":"In &quot;FreeBSD&quot;","block_context":{"text":"FreeBSD","link":"https:\/\/icesquare.com\/wordpress\/category\/sever-problem\/freebsd\/"},"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":3539,"position":3},"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":1629,"url":"https:\/\/icesquare.com\/wordpress\/rm-varempty-operation-not-permitted\/","url_meta":{"origin":3539,"position":4},"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":603,"url":"https:\/\/icesquare.com\/wordpress\/weird-php-error-after-freebsd-port-upgrade\/","url_meta":{"origin":3539,"position":5},"title":"Weird PHP Error after FreeBSD port upgrade (PHP Warning:  PHP Startup: Unable to load dynamic library)","author":"Derrick","date":"April 6, 2010","format":false,"excerpt":"Today I upgraded the port on my FreeBSD box using portmaster tools: portmaster -Dai After that, I found that the PHP gave the following weird error: php -v PHP Warning: PHP Startup: Unable to load dynamic library '\/usr\/local\/lib\/php\/20060613\/memcached.so' - \/usr\/local\/lib\/php\/20060613\/memcached.so: Undefined symbol \" php_session_create_id\" in Unknown on line 0 PHP\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\/3539","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=3539"}],"version-history":[{"count":11,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3539\/revisions"}],"predecessor-version":[{"id":3629,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3539\/revisions\/3629"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}