After finding the node-canvas library, I simply used it and found it quite useful.
Step 1 install
You also need to install some dependencies before installing node-canvas. Linux and mac are used as examples to install different systems:
Linux: sudo yum install cairo-devel cairomm-devel libjpeg-turbo-devel pango-devel pangomm-devel giflib-devel
Mac: brew install pkg-config cairo pango libpng jpeg giflib
For
disabled by PHP. If some programs need this function, they can be deleted and disabled.Locate:; date. timezone =Changed to: date. timezone = 'Asia/Shanghai' (* Important *). If this parameter is not modified, the PHP file cannot be opened.Find: expose_php = OnChange to: expose_php = OFF # disable display of php version informationFind: display_errors = OnChanged to display_errors = OFF # Disable Error Message8. Configure apache to support phpVi/usr/local/webserver/apache/conf/httpd. conf # edit
$ your_develop_dir/usr/share/fonts, to make fontconfig run properly.
11. Download The pango-1.4.1 source code, compile and install
Web site (ftp://ftp.gtk.org/pub/gtk/v2.4/pango-1.4.1.tar.bz2)
12. Download The atk-1.6.1 source code, compile and install
Web site (ftp://ftp.gtk.org/pub/gtk/v2.4/atk-1.6.1.tar.bz2)
13. Download The libpng-1.2.7 source code, compile and install
URL (http://sourceforge.net
$./Hello
Hello! World!
Hello! C language!
Then install the GTK Development Kit libgtk2.0-dev:
Sudo apt-get install libgtk2.0-dev
After installation, you can use pkg-config to view the GTK compilation environment information:
Pkg-config -- cflags -- libs gtk ++-2.0
Pkg-config will read. pc files to obtain relevant compilation information. -- cflags will list the include directory and -- libs will list the Linked Library and its directory. Take my computer as an example:
Directory. Take my comput
http: // server IP Address/in the browser. If php information exists, the Linux + apache + php + mysql environment is successfully configured.
6. Install rrdtool1. Install rrdtool to support some library files cairo-devel libxml2-devel pango-devel pango libpng-devel freetype-devel libart lgpl-devel intltool first run the rpm-qa | grep * command to check the library file exists in my RHEL5.4 system. Only t
$ document_root $ fastcgi_script_name; include fastcgi_params;}/etc/init. d/nginx restart # restart nginx cd/usr/local/nginx/html/# enter the default nginx website root directory rm-rf/usr/local/nginx/html/* # Delete the default test page chown www. www/usr/local/nginx/html/-R # set the directory owner chmod 755/usr/local/nginx/html/-R # set the directory permission to restart nginx, mysqld, php- install and configure the Cacti Web service for the fpm service (1) install rrdtool, net-snmp, and
to be called.
(3) Place the source file in lines around 173
Xxyougladexxx_SOURCES = \
Main. c \
Support. c support. h \
Interface. c interface. h \
Replace callbacks. c callbacks. h:
Xxyougladexxx_SOURCES = \
Main. c \
Support. c support. h \
Interface. c interface. h \
Callbacks. c callbacks. h \
Xx1.c xx1.h \
Xx2.c xx2.h \ xx1 and xx2 are self-compiled. c and. H files.
(4) about 179 rows:
Xxyougladexxx_LDADD =-lpcap? Pthread and library file-lpcap? Pthread, the first is libpcap, and the secon
Ndoutuils is based on the correct installation of Nagios, please go to the previous article for Nagios installation.1. Dependency packet Detection#rpm-Q libxml2-devel pango-devel cairo-devel#yum Install Libxml2-devel pango-devel cairo-devel2. Compiling the installation#tar ZXVF rrdtool-1.4.8.tar.gz#cd rrdtool-1.4.8#./configure--prefix=/usr/local/rrdtool#make#make Install3. Verify that the installation is su
.
Osgvirtualenvironment:configurable, device-independent virtual reality engine built on top of openscenegraph.
Osgaudio:3d Sound Library, combining OSG with Fmod.
Osgal:3d Sound Library, combining OSG with OpenAL.
Osgmodeling:array-dominated, the use of OSG Giambesel curved surface and other mathematical models of the library.
Osgode: A library that combines OSG with Ode, Ode is a physical engine.
Osgsmallcity: As stated in its name, the model is a small city.
The combination of O
1. First you need to install the dependent libraries required by guacamoleThe libraries You must install are: Cairo, Libjpeg-turbo, libpng, OSSP UUIDIf the command is executed under the Debian/ubuntu system:sudo Install libcairo2-dev libjpeg62-turbo-dev libjpeg62-dev libpng12-dev Libossp-uuid-devIf the following command is executed in the Fedora/centos/rhel system:sudo Install cairo-devel libjpeg-turbo-devel libjpeg-devel libpng-devel uuid-develThe libraries you can choose to install are: FREERD
install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel
Solaris
pkgin install cairo pkg-config xproto renderproto kbproto xextproto
Windows
Instructions on our wiki
The information on this table is from GitHub. Here I explain the pit I've stepped on:
The first time because there is no JPEG i
Prerequisite: The lamp has been compiled and installed (mysql5.5)First, configure the service side1, note the central host, and enable the virtual host, add a virtual host# cd/etc/httpd/# Vim Httpd.confCommented out: DocumentRoot "/usr/local/apache/htdocs"Enable: # Virtual hostsInclude/etc/httpd/extra/httpd-vhosts.conf# vim/etc/httpd/extra/httpd-vhosts.confDocumentRoot "/web/vhosts/cacti"ServerName cacti.fsy.comOptions Indexesallowoverride NoneRequire all grantedErrorlog "Logs/cati-error_log"Cus
default to 127.0.0.1, such as:Change the SystemView of 62 rows to all and enable 85 rows: View all included. 1 80, such as:2, installation RRDtool(1) Check and install dependent packages[email protected] ~]# Yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel Libart _lgpl-devel Pear Pear-devel(2) Source code installation RRDtool[Email protected] ~]# cd/data1[Email p
1. Environmental statementCentOS 6.5 x86_64 minimized installation.2. Install the Build toolYum Install GCC3. Install the necessary third-party toolkitYum install zlib zlib-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel fontconfig fontconfig-devel Pixman pixman-devel Cairo Cairo-devel Pango Pango-devel4. Install the Perl development module, or you will get an error when compilingYum
CentOS7 System Optimization1. Change the Yum sourceWget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-7.repo2. Add Full service functionYum Install-y bash-completion3. Turn off the firewallSystemctl Stop Firewalld.service4. Turn off SELinuxSed-i ' S#selinux=disable#selinux=disabled#g '/etc/sysconfig/selinux5. Install common softwareYum Install Lrzsz tree nmap dos2unix-y6. Time Synchronization ServiceModify Time ZoneTimedatectl Set-timezone Asia/shanghaiNtpdate time1.al
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.