Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and start gearmand under rhel5.7

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "how to install and start gearmand under rhel5.7". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

First of all, download the source code package of gearmand from the official website https://launchpad.net/gearmand/, transmit it to the rhel5.7 system, and decompress it.

Run configure:

[@ localhost gearmand-1.1.11] #. / configure-- prefix=/usr/local/gearman-- with-mysql-- with-sqlite3=no

At this time, the following error will occur:

Checking for Boost headers version > = 1.39.0... No configure: error: cannot find Boost headers version > = 1.39.0 ok, http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download

At this point, you need to download boost and decompress:

. / bootstrap.sh-- prefix=/usr/local/boost/. / b2 install

This process will take some time to wait. Details can be found on the official website: doc http://www.boost.org/doc/libs/1_55_0/more/getting_started/unix-variants.html

After the installation is complete, return to the gearman directory and execute the following command:

CPPFLAGS=-I/usr/local/boost/include LDFLAGS=-L/usr/local/boost/lib. / configure-prefix=/usr/local/gearman-with-mysql-with-sqlite3=no

At this time, the following error will be reported:

Checking for gperf... No configure: error: could not find gperf

This is followed by a yum installation:

Execute the above configur again, and there is no error. OK, ready to compile.

During the execution of the make command, a lot of errors were reported, including one:

. / libgearman-1.0/gearman.h:53:27: error: tr1/cinttypes: No such file or directory

It can be inferred that it is the problem with the gcc compiler, execute the command:

Yum install gcc44 gcc44-c++ libstdc++44-devel-y

Execute after installation:

CXX=/usr/bin/g++44 CC=/usr/bin/gcc44 CPPFLAGS=-I/usr/local/boost/include LDFLAGS=-L/usr/local/boost/lib. / configure-- prefix=/usr/local/gearman-- with-mysql-- with-sqlite3=nomake & & make install

At this point, the installation is successful, execute the following command to start (queue persistence save)

/ usr/local/gearman/sbin/gearmand-p 4730-L 0.0.0.0-log-file=/tmp/gearmand-4730.log-- pid-file=/tmp/gearmand-4730.pid-Q MySQL-- mysql-host=localhost-- mysql-user=root-- mysql-db=gearman-- verbose DEBUG-d

On startup, the following error was found:

/ usr/local/gearman/sbin/gearmand: error while loading shared libraries: libboost_program_options.so.1.55.0: cannot open shared object file: No such file or directory

Then obviously, it is due to the fact that the linked file cannot be found. Execute the following command:

Vi / etc/ld.so.conf.d/gearman.conf

Insert the following to save the exit

/ usr/local/boost/lib/ / usr/local/gearman/lib/

Execute a command

Ldconfig

Execute the above startup command again, and you can start gearmand.

This is the end of "how to install and start gearmand under rhel5.7". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report