{"id":900,"date":"2010-10-22T20:29:56","date_gmt":"2010-10-23T01:29:56","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=900"},"modified":"2012-08-14T18:11:42","modified_gmt":"2012-08-14T23:11:42","slug":"cannot-find-autoconf-please-check-your-autoconf-installation-and-the-php_autoconf-environment-variable-then-rerun-this-script","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/cannot-find-autoconf-please-check-your-autoconf-installation-and-the-php_autoconf-environment-variable-then-rerun-this-script\/","title":{"rendered":"Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script."},"content":{"rendered":"<p>This post is about FreeBSD, however the idea is about the same for other Unix systems.<\/p>\n<p>While I tried to install memcached, the system complained with this message:<\/p>\n<pre>\r\nCannot find autoconf. Please check your autoconf installation and the\r\n$PHP_AUTOCONF environment variable. Then, rerun this script.\r\n<\/pre>\n<p>This problem is caused by missing couple variables at the shell level: <strong>PHP_AUTOCONF<\/strong>, <strong>PHP_AUTOHEADER<\/strong>. It is very easy to solve this problem:<\/p>\n<p>1. First, make sure that <strong>Autoconf<\/strong> is installed in your system:<\/p>\n<pre>\r\n#pkg_info | grep autoconf\r\nautoconf-2.68       Automatically configure source code on many Un*x platforms\r\nautoconf-wrapper-20071109 Wrapper script for GNU autoconf\r\n<\/pre>\n<p>If autoconf is not available, install it from here:<\/p>\n<pre>\r\ncd \/usr\/ports\/devel\/autoconf268\r\nmake install clean\r\n<\/pre>\n<p>2. Now, we need to set couple variables. This step is very important because you can&#8217;t set the variable using <strong>sudo export x=y<\/strong>. First, switch to root<\/p>\n<pre>\r\nsudo su\r\n<\/pre>\n<p>3. Find out where is autoconf (The location in FreeBSD and Linux are different)<\/p>\n<pre>\r\nwhich autoconf\r\n<\/pre>\n<p>4. Set the autoconf, in my case, it is <strong>\/usr\/local\/bin\/autoconf<\/strong><\/p>\n<pre>\r\nexport PHP_AUTOCONF=\/usr\/local\/bin\/autoconf\r\n<\/pre>\n<p>5. Do the same thing for autoheader:<\/p>\n<pre>\r\nwhich autoheader\r\nexport PHP_AUTOHEADER=\/usr\/local\/bin\/autoheader\r\n<\/pre>\n<p>That&#8217;s it. Now try to install your software again and the error message should be gone.<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post is about FreeBSD, however the idea is about the same for other Unix systems. While I tried to install memcached, the system complained with this message: Cannot find <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/cannot-find-autoconf-please-check-your-autoconf-installation-and-the-php_autoconf-environment-variable-then-rerun-this-script\/\">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],"class_list":["post-900","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"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-ew","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1591,"url":"https:\/\/icesquare.com\/wordpress\/the-develautomake110-port-has-been-deleted-no-longer-required-by-any-port-aborting-update\/","url_meta":{"origin":900,"position":0},"title":"The devel\/automake110 port has been deleted: No longer required by any port&#8230;Aborting update","author":"Derrick","date":"September 21, 2011","format":false,"excerpt":"My FreeBSD box must be sick today. For some reasons, when I ran the portsnap command (i.e., portsnap fetch update), it removed the entire port directory (i.e., rm \/usr\/ports -Rf). Therefore, I decided to build the entire port tree: sudo su cd \/var\/db\/portsnap rm -Rf * portsnap fetch extract I\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":900,"position":1},"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":917,"url":"https:\/\/icesquare.com\/wordpress\/what-can-you-do-with-a8m2n-la-nodusm-gl8e\/","url_meta":{"origin":900,"position":2},"title":"What can you do with A8M2N-LA \/ NodusM-GL8E?","author":"Derrick","date":"October 30, 2010","format":false,"excerpt":"Recently, I decided to turn my HP m7557c computer (motherboard: A8M2N-LA \/ NodusM-GL8E) to an Unix server. The nightmare began. After trying nearly 10 different operating systems and distributions, I found that only very few of them worked with A8M2N-LA \/ NodusM-GL8E. I think it is worth to share 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":"","width":0,"height":0},"classes":[]},{"id":1601,"url":"https:\/\/icesquare.com\/wordpress\/freebsd-startup-script-how-to-start-a-script-on-boot-in-freebsd\/","url_meta":{"origin":900,"position":3},"title":"FreeBSD Startup Script &#8211; How to Start a Script on Boot in FreeBSD (An Alternative Solution to \/etc\/rc.local)","author":"Derrick","date":"September 22, 2011","format":false,"excerpt":"I want to start a script when booting my FreeBSD box automatically. Unlike Linux, FreeBSD does not honor the script you put in \/etc\/rc.local. Usually it is recommended to use the rc service (See here for details), however I think it is too complicated to convert my script to a\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":2181,"url":"https:\/\/icesquare.com\/wordpress\/freebsd-updateinstalling-updates-install-usrsrcliblibcgenlibc_dlopen-c-no-such-file-or-directory\/","url_meta":{"origin":900,"position":4},"title":"[FreeBSD-update]Installing updates&#8230;install: \/\/\/usr\/src\/lib\/libc\/gen\/libc_dlopen.c: No such file or directory","author":"Derrick","date":"December 23, 2011","format":false,"excerpt":"When I tried to upgrade my FreeBSD system today, I received a last minute Christmas gift from the FreeBSD team. :-) #sudo freebsd-update fetch Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 8.2-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files...\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":2646,"url":"https:\/\/icesquare.com\/wordpress\/php-imagecreatefrompng-error\/","url_meta":{"origin":900,"position":5},"title":"[PHP]imagecreatefrompng Error (After upgrading FreeBSD)","author":"Derrick","date":"January 25, 2012","format":false,"excerpt":"Today, I found that one of my PHP scripts stop working. After some investigations, I found that it was the function, imagecreatefrompng, which caused the problem. Interestingly, other similar functions such as imagecreatefromgif and imagecreatefromjpeg were completely working fine. The program stopped working when calling imagecreatefrompng only. [ad#adbrite-square] Initially, I\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\/900","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=900"}],"version-history":[{"count":15,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/900\/revisions"}],"predecessor-version":[{"id":2892,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/900\/revisions\/2892"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}