如何在OSX和Ubuntu中安装imagesft?

时间:2022-11-20 00:22:27

I'm using PIL 1.1.6 to render a truetype font on my local Windows machine. I'd like to be able to get the application running in OSX and Ubuntu (server). So far the instructions I've found all deal with specific ports repositories on OSX (Darwinports, Macports, etc.) or very outdated instructions for Linux.

我正在使用PIL 1.1.6在我的本地Windows机器上呈现truetype字体。我希望能够在OSX和Ubuntu(服务器)中运行应用程序。到目前为止,我发现的指令都涉及OSX上的特定端口存储库(Darwinports,Macports等)或Linux的非常过时的指令。

Has anyone recently got imagingft to work in either and what were your specific steps?

有没有人最近有成像工作,你的具体步骤是什么?

1 个解决方案

#1


0  

Long ago I'd switched my OSX (Snow Leopard) python version from the default 2.6 back to 2.5 for compatibility reasons on a project I had been working on. I switched it back to 2.6 and was then able to compile imagingft normally:

很久以前,我将我的OSX(Snow Leopard)python版本从默认的2.6切换回2.5,出于兼容性原因我正在进行的项目。我把它切换回2.6然后能正常编译成像:

./configure
make
make install

I was able to do the same thing on my Ubuntu server and neither required that I even reinstall PIL, despite some sets of instructions stating that I might have to.

我能够在我的Ubuntu服务器上执行相同的操作,并且既不需要我重新安装PIL,尽管有一些说明我可能必须这样做。

#1


0  

Long ago I'd switched my OSX (Snow Leopard) python version from the default 2.6 back to 2.5 for compatibility reasons on a project I had been working on. I switched it back to 2.6 and was then able to compile imagingft normally:

很久以前,我将我的OSX(Snow Leopard)python版本从默认的2.6切换回2.5,出于兼容性原因我正在进行的项目。我把它切换回2.6然后能正常编译成像:

./configure
make
make install

I was able to do the same thing on my Ubuntu server and neither required that I even reinstall PIL, despite some sets of instructions stating that I might have to.

我能够在我的Ubuntu服务器上执行相同的操作,并且既不需要我重新安装PIL,尽管有一些说明我可能必须这样做。