首先,我在为python安装gd库和gdmodule时遇到了困难。
sudo apt-get install mercurial
sudo apt-get install libgd2-xpm-dev然后尝试使用sudo python Setup.py install安装gd模块,这是我从http://newcenturycomputers.net/projects/gdmodule.html下载的。
我收到警告:缺少gd,jpeg,png,gif,z,x11,Xmp,rtf,freetype库找不到GD库
如何正确安装两者,在安装前两个时没有出现错误。我完全被困住了,而且我对Ubuntu的使用非常陌生,所以我知道的不多。
发布于 2013-02-10 11:12:25
您不需要从源代码中安装gd,它位于存储库中:
sudo apt-get install python-gd如果出于某种原因,您仍然希望从源代码安装,那么安装所有构建依赖关系也很容易:
sudo apt-get build-dep python-gdhttps://askubuntu.com/questions/253384
复制相似问题