./configure --prefix=/usr/local/ImageMagick
./configure CPPFLAGS="-I/usr/local/jpeg-6b -I/usr/local/freetype/include -I/usr/local/freetype/include/freetype2" LDFLAGS="-L/usr/local/lib -L/usr/local/freetype/lib" --prefix=/usr/local/ImageMagick
make
make install
Chances are, ImageMagick is already installed on your computer if you are using some flavor of Unix, but that it is not installed if you are using some form of Windows. In either case, you can type the following to find out.
- $magick> identify -version ntify -version
If the identify program executes and identifies itself as ImageMagick, you may not need to install ImageMagick from source unless you want to add support for additional image formats or upgrade to a newer version. You also have the option of installing a pre-compiled binary release. However, if you still want to install from source, choose a platform, Unix or Windows. Before installing from source, you may want to review recent changes to the ImageMagick distribution.
ImageMagick builds on a variety of Unix and Unix-like operating systems including Linux, Solaris, FreeBSD, Mac OS X, and others. A compiler is required and fortunately almost all modern Unix systems have one. Download ImageMagick.tar.gz from ftp.imagemagick.org or a mirrors and verify its message digest.
Unpack the distribution with this command:
- $magick> tar xvfz ImageMagick.tar.gz
Next configure and compile ImageMagick:
- $magick> cd ImageMagick-6.6.6
- $magick> ./configure
- $magick> make
If ImageMagick configured and compiled without complaint, you are ready to install it on your system. Administrator privileges are required to install. To install, type
- $magick> sudo make install
Finally, verify the ImageMagick install worked properly, type
- $magick> /usr/local/bin/convert logo: logo.gif
For a more comprehensive test, run the ImageMagick validation suite. Ghostscript is a prerequisite, otherwise the EPS, PS, and PDF tests will fail.
- $magick> make check
Congratulations, you have a working ImageMagick distribution and you are ready to use ImageMagick to convert, compose, or edit your images or perhaps you'll want to use one of the Application Program Interfaces for C, C++, Perl, and others.
The above instructions will satisfy a great number of ImageMagick users, but we suspect a few will have additional questions or problems to consider. For example, what does one do if ImageMagick fails to configure or compile? Or what if you don't have administrator privileges and what if you don't want to install ImageMagick in the default /../usr/local folder? You will find the answer to these questions, and more, in Advanced Unix Source Installation.
Building ImageMagick source for Windows requires a modern version of Microsoft Visual Studio IDE. Users have reported success with the Borland C++ compiler as well. If you don't have a compiler you can still install a self-installing binary release.
Download ImageMagick-windows.zip from ftp.imagemagick.org or a mirrors and verify its message digest.
You can unpack the distribution with WinZip or type the following from any MS-DOS Command Prompt window:
- $magick> unzip ImageMagick-windows.zip
Next, launch your Visual Studio IDE and choose Open->Project. Select the configure workspace from the ImageMagick-6.6.6/VisualMagick/configure folder and press Open. Choose Build->Build Solution to compile the program and on completion run the program.
![[configure]](http://www.517sou.net/Attach/month_1012/2p6gbi_101450_1.jpg)
Press Next and click on the multi-threaded static build. If you are using the Visual Studio 6.0 IDE, make sure no check is next to the Generate Visual Studio 7 format option. Now press, on Next twice and finally Finish. The configuration utility just created a workspace required to build ImageMagick from source. Choose Open->Project and select the VisualStaticMT workspace from the ImageMagick-6.6.6/VisualMagick/ folder. Finally, choose Build->Build Solution to compile and build the ImageMagick distribution.
To verify ImageMagick is working properly, launch a MS-DOS Command Prompt window and type
- $magick> cd ImageMagick-6.6.6
$magick> convert logo: image.jpg
For a more comprehensive test, run the ImageMagick validation suite:
- $magick> validate
Congratulations, you have a working ImageMagick distribution under Windows and you are ready to use ImageMagick to convert, compose, or edit your images or perhaps you'll want to use one of the Application Program Interfaces for C, C++, Perl, and others.
The above instructions will satisfy a great number of ImageMagick users, but we suspect a few will have additional questions or problems to consider. For example, what does one do if ImageMagick fails to configure or compile? Or what if you want to install ImageMagick in a place other than theImageMagick-6.6.6/VisualMagick/bin folder? Or perhaps you want to build and install the ImageMagickObject COM+ component. You will find the answer to these questions, and more, in Advanced Windows Source Installation.
本日志由 flyinweb 于 2010-12-30 10:06:25 发表,目前已经被浏览 2069 次,评论 0 次;
作者添加了以下标签: ImageMagick;
引用通告:http://www.517sou.net/Article/556/Trackback.ashx
而且直接配置文件是效率最高的,通过其它驱动效率都相对较低,BDB
这个测试不太准确,看官方的测试结果:http://bind-dlz.sourceforg
为什么使用BDB时QPS这么低? 我在bind版本基本相似的环境中测试的
It is quite useful and interesting too.
VIRT 的上限是64G,也就是36位, cat /proc/cpuinfo的结果是:addre
昨天要准备用线程重写webbench,试验了下Fedora Linux 2.6.35.14
不明白您的具体的意思是什么?
已经发送到你QQ邮箱