configure: error: Unable to find libgd.(a|so)

如果使用的是ubuntu或debian就很简单了,直接sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd 就基本上搞定,但是用源代码安装还是很麻烦~

wget http://www.boutell.com/gd/http/gd-2.0.11.tar.gz
tar zxvf gd-2.0.11.tar.gz
cd gd-2.0.11
sudo ./configure --prefix=/usr/local/gd2
sudo make
sudo make install

再php:~/:./configure …… --with-gd=/usr/local/gd2 ……


以下是转载的,而且都是基于yum install或者apt-get的。

1) Configure: error: xml2-config not found. Please check your libxml2 installation.

Solutions :

Quote:
#yum install libxml2 libxml2-devel (For Redhat & Fedora)

# aptitude install libxml2-dev (For ubuntu)

2) Checking for pkg-config… /usr/bin/pkg-config
configure: error: Cannot find OpenSSL’s <evp.h>

Solutions :

Quote:
#yum install openssl openssl-devel

3) Configure: error: Please reinstall the BZip2 distribution

Solutions :

Quote:
# yum install bzip2 bzip2-devel

4) Configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/

Solutions :

Quote:
# yum install curl curl-devel (For Redhat & Fedora)

# install libcurl4-gnutls-dev (For Ubuntu)

5) Configure: error: libjpeg.(also) not found.

Solutions :

Quote:
# yum install libjpeg libjpeg-devel

6) Configure: error: libpng.(also) not found.

Solutions :

Quote:
# yum install libpng libpng-devel

7) Configure: error: freetype.h not found.
Solutions :

Quote:
#yum install freetype-devel

8) Configure: error: Unable to locate gmp.h

Solutions :

Quote:
# yum install gmp-devel

9) Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!

Solutions :

Quote:
# yum install mysql-devel (For Redhat & Fedora)

# apt-get install libmysql++-dev (For Ubuntu)

10) Configure: error: Please reinstall the ncurses distribution

Solutions :

Quote:
# yum install ncurses ncurses-devel

11) Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!

Solutions :

Quote:
# yum install unixODBC-devel

12) Configure: error: Cannot find pspell

Solutions :

Quote:
# yum install pspell-devel

13) configure: error: mcrypt.h not found. Please reinstall libmcrypt.

Solutions :

Quote:
# yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)

# apt-get install libmcrypt-dev

14) Configure: error: snmp.h not found. Check your SNMP installation.

Solutions :

Quote:
# yum install net-snmp net-snmp-devel
by 大尾巴 | 来自 本站原创 | 不指定 2010/01/19 11:54 | 学习 | 评论(5) | 引用(0) | 阅读(194)
puce0o1d1 Email Homepage
2010/09/04 10:46
→∴╮变压器电表倒数器╭←ぁ Q26985551 2电╳话152╳78374434我们公司销售、机械电表、单相、双相、三相、电子液晶显示、商业电表、各种电表型号的控制器控制器、节电器、慢走器、慢转器、偷电器、盗电器、省电器2010最新商品说明每个系列仪器的图片一致,功率大小不同,价格也各有不同仪器大功率兼容小功率,三相兼容单相。电子系列:(可以兼容滚轮式电子煤气表,使煤气表倒转)采用独特技术,超强功率,不动电表,不改线路,距离20公分可使电子滚轮式电表迅速倒转、正转。适用于各类电子数字电表。采用震荡电路原理,可以发射高频电磁波信号,使液晶显示的电表显示和计费系统瘫痪,使用后电表不计费也不显示,而电路原理不受影响,若要电表恢复正常计费和
puce6g1m6 Email Homepage
2010/09/04 10:14
《囍》防窃电表慢转器【qq100-325-9936致电15278374434黄经理】微电脑控表器(电表调校器,适合单相家用机械表、三相工业用表、电子表、IC卡表)是我公司最新开发出来的新奇特产品。本产品具有体积小,操作简单效果明显.本公司刚研发出针对电子轮显表,液晶表单相双相的,插上我们的设备20米电表就直接不走,拔掉以后电表自动工作正常,本产品可长时间使用,欢迎新老客户带表前来试验,订购,代理!!!防窃电表慢转器q269855-512使用时,要将仪器贴近电表液晶显示表面位置,按上液晶表调校器开关1-3秒,液晶电表即可无显示,用电正常,不再计费。若想恢复,只要把仪器贴近电表液晶显示表面位置,按上液晶表调校器开关1-3秒,液晶电表即可显示,开始计费。
IWC34ywyy Email Homepage
2010/09/02 12:34
THE TROUBLE WITH PROMOTIONAL CONTENT IN ARTICLES
By: Penny, EzineArticles Managing Editor
Your readers want expert advice, not a sales pitch. They get a feel for the value of the content you share through what you write. Their positive experiences of your content build your credibility; their negative experiences demolish it. If credibility is established and built, they may trust you enough to surf to your site.
Remember that your article body shouldn&#8217;t sound like an infomercial for your product. If your article writing and marketing campaign was launched to build awareness for a specific product, you&#8217;ll be able to start converting readers into customers through the Resource Box. The trouble with promotional content in articles is that it tries to convert readers into customers before establishing any credibility.
Here are some &#8220;DO&#8217;s&#8221; and &#8220;DON&#8217;Ts&#8221; to build a reputation on informative content:
DO:
Use the article body to provide original tips, techniques, analysis and opinions &#8211; Build credibility through content that is packed with information and gets right to the point. If a reader finds an article that doesn&#8217;t get right to the point, they&#8217;ll look elsewhere for that information.

Promotional content belongs in the Resource Box &#8211; Once you&#8217;ve delivered on the promise of the article with quality content, you can provide information about yourself or your company in the Resource Box. Remember that your Resource Box should only be about 15% of the length of your article body.

Have a plan before you write &#8211; If you know the information you plan on sharing before you start writing, you&#8217;ll be able to stick to your outline. If you don&#8217;t have a plan, you&#8217;ll be more prone to talking about the product you are trying to promote.

Give recommendations for products that have worked for you &#8211; Some readers look for product reviews to gauge the effectiveness of products on the market. If you&#8217;re not associated with the product, you can give an unbiased review of it as long as you don&#8217;t link directly to the product&#8217;s website.
DON&#8217;T:
Don&#8217;t use sales copy inside the article, like: &#8220;For $29.99, you can get [the product] and your satisfaction is guaranteed.&#8221;

Don&#8217;t use your company&#8217;s links in the article body in any context. Even using your company&#8217;s website as an example is too promotional.

Don&#8217;t promote your Resource Box in the article body. Provide valuable content first. Then, use the Resource Box for any mentions of your company or products.

Don&#8217;t name drop in the article body. Once again, remember that your company, product and name belong in the Resource Box.
Follow these &#8220;Do&#8217;s&#8221; and &#8220;Don&#8217;ts&#8221; when submitting your next set of quality, original articles to ensure they are full of value rather than salesmanship. Leave a comment below if you have any questions or thoughts to share.
If you want to see the entire &#8220;From My Desk to Yours&#8221; Blog post series, click here.
5gqoql5240 Email Homepage
2010/09/02 01:14
sbndsxaxgf Email Homepage
2010/09/02 00:15
开票热线:13530799861张先生.各种国、地**税【嘌】(商品、运输、增直等),长期对外寻求合作,开建筑业发票,如有需要*请*来电洽谈: 13530799861 张'R.在线QQ903340059
分页: 1/1 第一页 1 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]