(original) UBUNTU14 installed GraphicsMagick

Source: Internet
Author: User

Reprint please specify the source:

Http://www.cnblogs.com/darkknightzh/p/5661439.html

Reference URL:

http://comments.gmane.org/gmane.comp.video.graphicsmagick.core/514

Http://www.graphicsmagick.org/INSTALL-unix.html

Https://github.com/clementfarabet/graphicsmagick

Http://www.cnblogs.com/cocowool/archive/2010/08/16/1800954.html

Ubuntu can really make people crazy ... Previously installed on the ubuntu16 GraphicsMagick seemingly no problem, in the torch directly using require ' GraphicsMagick ' no error, but on the ubuntu14 above, installed after the prompt:

/home/xxx/torch/install/share/lua/5.1/trepl/init.lua:384:/home/xxx/torch/install/share/lua/5.1/trepl/inti.lua : 384: .../xx/torch/install/share/lua/5.1/graphicsmagick/image.lua:322:libgraphicsmagickwand.so:cannot open shared Object File:no such file or directory.

Such as:

Description: This is the command inside LUA. After installing the GraphicsMagick in Torch and Https://github.com/clementfarabet/graphicsmagick, run the command. Installation of the torch GraphicsMagick directly using the luarocks is possible.

Later on the Internet search ... Well, long time, finally solved. However, it does not mean that this method also applies to other people who encounter the problem.

The installation GraphicsMagick steps are as follows:

1. Go to the official website to download graphicsmagick:http://www.graphicsmagick.org/

2. After unpacking, CD to the folder.

3. Run the following command:

' --with-magick=wand/graphicsmagickwand-config ' ' --enable-shared '

Description: The first with is to generate libgraphicsmagickwand.so (which may not be generated by default, it is not actually seen in Lib), and the second with is to generate a shared library (the default may be static, I begin to use the second one, get the library suffix is. a)

4. Run the following command:

 Make sudo  Make Install

5. After this, you are prompted not to find libgraphicsmagickw.so.3, and then continue to search online. URL: http://comments.gmane.org/gmane.comp.video.graphicsmagick.core/514 Nguyen Vu Hung gives the solution:

Try knocking these commands in the terminal, as follows:

sudo Echo "/usr/local/Lib"sudo /sbin/ldconfig

As follows:

Well, I don't know what these commands mean, nor do I search. The second name is more unclear is the typing or how to do, anyway, prompt permission is not enough. Then he knocked on the third order. And then there's no more.

6. Knocking the GM in the terminal, the installation was successful, as follows:

Description: do not remember how the beginning of ubuntu16 success. It was just that I didn't remember. can also be installed automatically, command to search the Internet, but I do not seem to automatically install.

Update:

Just went to ubuntu16 below to see a bit,/usr/local/lib below does not have libgraphicsmagickwand.so, such as:

However, there is no error in using require ' graphicsmagick ' directly in th, such as:

Understand not.

(original) UBUNTU14 installed GraphicsMagick

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.