{"id":2181,"date":"2011-12-23T15:43:53","date_gmt":"2011-12-23T21:43:53","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=2181"},"modified":"2012-01-25T10:41:22","modified_gmt":"2012-01-25T16:41:22","slug":"freebsd-updateinstalling-updates-install-usrsrcliblibcgenlibc_dlopen-c-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/freebsd-updateinstalling-updates-install-usrsrcliblibcgenlibc_dlopen-c-no-such-file-or-directory\/","title":{"rendered":"[FreeBSD-update]Installing updates&#8230;install: \/\/\/usr\/src\/lib\/libc\/gen\/libc_dlopen.c: No such file or directory"},"content":{"rendered":"<p><img decoding=\"async\" data-attachment-id=\"2190\" data-permalink=\"https:\/\/icesquare.com\/wordpress\/freebsd-updateinstalling-updates-install-usrsrcliblibcgenlibc_dlopen-c-no-such-file-or-directory\/freebsd-christmas-small\/#main\" data-orig-file=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/12\/FreeBSD-Christmas-small.png\" data-orig-size=\"250,261\" data-comments-opened=\"1\" data-image-title=\"FreeBSD-Christmas-small\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/12\/FreeBSD-Christmas-small.png\" src=\"\/wordpress\/wp-content\/uploads\/2011\/12\/FreeBSD-Christmas-small.png\" width=\"150\" class=\"alignleft size-thumbnail wp-image-2190\" \/><\/p>\n<p>When I tried to upgrade my FreeBSD system today, I received a last minute Christmas gift from the FreeBSD team. \ud83d\ude42<\/p>\n<pre style=\"margin-top:100px;\">\r\n#sudo freebsd-update fetch\r\nLooking up update.FreeBSD.org mirrors... 4 mirrors found.\r\nFetching metadata signature for 8.2-RELEASE from update4.FreeBSD.org... done.\r\nFetching metadata index... done.\r\nInspecting system... done.\r\nPreparing to download files... done.\r\n\r\nThe following files will be added as part of updating to 8.2-RELEASE-p5:\r\n\/usr\/src\/lib\/libc\/gen\/libc_dlopen.c\r\n<\/pre>\n<p>I got the following error:<\/p>\n<pre>\r\n#sudo freebsd-update install\r\nInstalling updates...install: \/\/\/usr\/src\/lib\/libc\/gen\/libc_dlopen.c: No such file or directory\r\n done.\r\n<\/pre>\n<p><\/p>\n<p>Initially, I thought the problem was a typo in the freebsd-update profile, so I gave this a try:<\/p>\n<pre>\r\nsudo cat \/var\/db\/freebsd-update\/* | grep libc_dlopen.c\r\n<\/pre>\n<div class=\"alignright\" style=\"margin-left:20px;\"><\/div>\n<p style=\"margin-top:50px;  padding-right:30px; margin-right:30px;\">Unfortunately, I couldn&#8217;t find anything. So I investigated the problem, and I found that it was caused by the missing source. In a nut shell, if you did not install the FreeBSD with the source (i.e., \/usr\/src is empty), this problem will show up.<\/p>\n<p>To fix this problem, simply create a dummy directory:<\/p>\n<pre style=\"margin-top:100px;\">\r\nsudo mkdir -p \/usr\/src\/lib\/libc\/gen\r\n<\/pre>\n<p>and re-run everything once again, i.e.,<\/p>\n<pre>\r\n#sudo freebsd-update fetch\r\n#sudo freebsd-update install\r\n#sudo reboot\r\n<\/pre>\n<p>After the computer finishes rebooting, verify that the upgrade is done:<\/p>\n<pre>\r\n# sudo freebsd-update fetch\r\nLooking up update.FreeBSD.org mirrors... 4 mirrors found.\r\nFetching metadata signature for 8.2-RELEASE from update2.FreeBSD.org... done.\r\nFetching metadata index... done.\r\nInspecting system... done.\r\nPreparing to download files... done.\r\n\r\nNo updates needed to update system to 8.2-RELEASE-p5.\r\n\r\n<\/pre>\n<p>That&#8217;s it!<\/p>\n<p>Enjoy this last minute Christmas gift from the FreeBSD team. Merry Christmas! \ud83d\ude42<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I tried to upgrade my FreeBSD system today, I received a last minute Christmas gift from the FreeBSD team. \ud83d\ude42 #sudo freebsd-update fetch Looking up update.FreeBSD.org mirrors&#8230; 4 mirrors <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/freebsd-updateinstalling-updates-install-usrsrcliblibcgenlibc_dlopen-c-no-such-file-or-directory\/\">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,69],"tags":[171,33],"class_list":["post-2181","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-freebsd","category-sever-problem","category-technology","category-troubleshooting-technology","tag-freebsd","tag-troubleshooting"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-zb","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2616,"url":"https:\/\/icesquare.com\/wordpress\/upgrade-freebsd-8-to-9\/","url_meta":{"origin":2181,"position":0},"title":"How to Upgrade FreeBSD from 8 to 9","author":"Derrick","date":"January 9, 2013","format":false,"excerpt":"Upgrading FreeBSD is very easy. Thanks for the simple architecture design and the disconnection between the kernel and the applications (ports), the whole process takes around 15 to 45 minutes. The coolest thing is that the system down time is very short. In my case, the down time was only\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":3263,"url":"https:\/\/icesquare.com\/wordpress\/freebsdportsnap-gunzip-cant-stat-files-gz-no-such-file-or-directory\/","url_meta":{"origin":2181,"position":1},"title":"[FreeBSD]Portsnap \/ gunzip: can&#8217;t stat: files\/&#8230; .gz: No such file or directory","author":"Derrick","date":"May 23, 2013","format":false,"excerpt":"My FreeBSD got an unknown fever today. When I updated my ports using portsnap, it gave the following error message: #sudo portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found. Fetching snapshot tag from your-org.portsnap.freebsd.org... done. Fetching snapshot metadata... done. Updating from Thu May 23 09:08:53 CDT 2013 to Thu\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":2181,"position":2},"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":[]},{"id":3125,"url":"https:\/\/icesquare.com\/wordpress\/freebsdthe-netsamba35-port-has-been-deleted-obsoleted-by-netsamba36\/","url_meta":{"origin":2181,"position":3},"title":"[FreeBSD]The net\/samba35 port has been deleted: Obsoleted by net\/samba36","author":"Derrick","date":"February 11, 2013","format":false,"excerpt":"FreeBSD is designed for users who got lots of spare time. Every once a while, it will give you some troubles (or \"snacks\" in programmer language), which help you to burn some of your spare time. If you cannot handle these troubles, then FreeBSD is not for you. Although FreeBSD\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":2502,"url":"https:\/\/icesquare.com\/wordpress\/freebsdproblem-to-update-php-port\/","url_meta":{"origin":2181,"position":4},"title":"[FreeBSD]Problem to update PHP port","author":"Derrick","date":"January 12, 2012","format":false,"excerpt":"A new version of PHP (5.3.9) was available in FreeBSD today. Since it contained a lot of security fixes and enhancements, I decided to give it a try. After testing the new PHP in couple test servers, I think it is ready to upgrade the PHP on the production 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":"","width":0,"height":0},"classes":[]},{"id":3253,"url":"https:\/\/icesquare.com\/wordpress\/solvedfreebsd-problem-to-update-glib20\/","url_meta":{"origin":2181,"position":5},"title":"[Solved]FreeBSD: Problem to Update glib20","author":"Derrick","date":"May 21, 2013","format":false,"excerpt":"I decided to install Java on my FreeBSD box today. It wasn't a very good experience. Primary the system is not automated. It requires a lot of manual works. Anyway, after waiting for couple hours, I found that the process was stuck on glib. The system could not build the\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\/2181","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=2181"}],"version-history":[{"count":36,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/2181\/revisions"}],"predecessor-version":[{"id":2205,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/2181\/revisions\/2205"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}