centos6下怎么gperf安装出错gperf

当前位置: →
→ centos下安装octave的问题
centos下安装octave的问题
& 作者及来源: Namlike - 博客园 &
&收藏到→_→:
摘要: centos下安装octave的问题
"centos下安装octave的问题"::
一开始使用源码安装,遇到很多问题,主要:
1)configure时提醒需要blas和lapack
于是下载lapack-3.5.0.tgz,编译过程也是几经周折:
发现lapack包里已经包含有blas的源码。
解压:tar zxf lapack-3.5.0.tgz
cd lapack-3.5.0
先编译blas,生成librefblas.a,否则直接编译lapack的话会提示缺少librefblas.a
make //得到librefblas.a
cp make.inc.example make.inc
最终得到librefblas.a 和liblapack.a两个文件,复制到/usr/local/lib中
重新configure,加上--with-blas=/usr/local/lib --with-lapack=/usr/local/lib,这回
configure就没得抱怨了,让我高兴的半死,可是悲剧还在后头
2)话说我装octave是要用来做图片处理的,可是就在我使用imread加载图片的时候,该死的
octave告诉我说octave在built的时候没有开启image i/o功能,不会吧,难道要重新configure。
没办法,对我这种菜鸟,也只能如此了,查看install.octave文件并查看configure --help,
知道是configure时没有--with-magick,configure --help的提示是:--with-magick=lib
与--with-magick=&lib&不一样,不知道什么意思,然后就各种撞墙找出路,好惨。
于是我查了下/usr/lib里是有两三个libgraphicsmagick.so.(数字文)件的,所以试了几个方法:
--with-magick=/usr/lib
--with-magick=/usr/lib/libgraphicsmagick.so.(数字)
有人说百度是万能的,这回我真不信了,压根就没有搜不到解决方法,还是google救了我。
google搜到一个英文论坛,大致给我的启示,configure使用pkg-config来搜索libgraphicsmagick
的各种目录,包括libs,include等,应该就是这几行:
& magick_cppflags=`$pkg_config --cflags-only-i $magick++`& magick_ldflags=`$pkg_config --libs-only-l $magick++`& magick_libs=`$pkg_config --libs-only-l $magick++`
所以按道理来说,不需要在--with-magick时添加目录,只需写库名就可以了,即
--with-magick=graphicsmagick
一开始并不知道有关graphicsmagick的库名是什么,有撞了好几次墙。不得不回顾了一下
pkg-config的作用原理,想起它需要对应的此文来自: 马开东博客
转载请注明出处 网址:
.pc文件,于是寻找所有的.pc文件,找不到。
愤怒之下,使用源码重装graphicsmagick(之前是使用yum install graphicsmagick直接装的)
然后,就是graphicsmagick的各种问题了
3)安装graphicsmagick
你想直接configure?做梦。不过我并不反对简单的先来。但这里我得先装依赖包!
重http://wiki.octave.org/octave_for_redhat_systems这里了解,据说是要装:
yum install gcc gcc-c++ kernel-devel make mercurial libtool libtool-ltdl-devel libtool-ltdl autoconf cmake lapack-devel \
lapack pcre-devel readline-devel readline fftw-devel glpk-devel suitesparse suitesparse-devel gnuplot libcurl-devel zlib-devel \
flex texlive gperf 这么多!我是菜鸟,先装上试试。
好像还是不行,又上网找了几个方法:http://blog.csdn.net/wangdogman/article/details/中的依赖包,yum install freetype gd-devel libgomp libjpeg libjpeg-devel libpng libpng-devel 最后终于configure通过,至今我仍然不知道是哪个方法拯救了我,那就继续糊涂吧,反正是行了!!
注意configure的时候要设置好--with-quantum-depth,具体见http://wiki.octave.org/graphicsmagick
我这是用配置为:
./configure
--with-quantum-depth=32 --enable-shared --disable-static --with-magick-plus-plus=yes
make check
sudo make install
成功后,在/usr/local/lib/pkgconfig中找到了几个.pc文件:
graphicsmagick.pc& graphicsmagick++.pc& graphicsmagickwand.pc但是使用pkg-config --cflags --libs graphicsmagick还是提示无法找到.pc文件,于是修改环境变量export pkg_config_path=$pkg_config_path:/usr/local/lib/pkgconfig/
这下行了。
4) 搞定了graphicsmagick,继续安装octave。
这里我configure的配置如下:
./configure --with-qhull-libdir=/usr/lib --with-hdf5-includedir=/usr/include \
--with-hdf5-libdir=/usr/lib --with-fftw3-includedir=/usr/include --with-fftw3-libdir=/usr/lib \
--with-fftw3f-libdir=/usr/lib --with-glpk-libdir=/usr/lib --with-curl-libdir=/usr/lib \
--with-magick=graphicsmagick --with-blas=/usr/lib/libblas.a --with-lapack=/usr/local/lib/liblapack.a
呵呵,好多,其实可能没必要。
./run-octave& // 这步的时候测试imread可行
make check
make install
顺利解决。
*****************************************************************
当然在centos下安装octave有更简单的方法,那就是可爱的yum。
但是这里需要先安装一个类似库的东西,就是可爱的epel,大概过程如下:
# wget http://url/to/latest/epel-release-x-x.noarch.rpm
# yum localinstall epel-release-6-7.noarch.rpm然后就可以,使用yum直接安装了:yum install octave octave-devel//这边可以参考http://wiki.octave.org/octave_for_gnu/linux#red_hat_enterprise
*****************************************************************
给octave安装image-2.2.1.tar.gz包
装个包也不让顺利点。
根据依赖关系,要先装general包,整个过程顺序如下:
进入octave
pkg install general-1.3.4.tar.gz
pkg install control-2.6.2.tar.gz
pkg install signal-1.3.0.tar.gz
pkg install image-2.2.1.tar.gz
&搜索此文相关文章:此文来自: 马开东博客
网址: 站长QQ
centos下安装octave的问题_博客园相关文章
博客园_总排行榜
博客园_最新
博客园_月排行榜
博客园_周排行榜
博客园_日排行榜CentOS 安装 Gearmand 和 PHP Gearman - 为程序员服务
CentOS 安装 Gearmand 和 PHP Gearman
本文是采用源码编译方式安装Gearmand 和 PHP Gearman,完成安装Gearman当前最新版本1.1.2。
你也可以采取傻瓜式一键安装,命令如下:
yum install gearmand
pecl install gearman
这样安装的方式是一键安装完成,关键是版本不是最新的。
本文接下来主要讲解源码编译安装最新版 gearmand 1.1.2 - A distributed job system。
安装 Gearmand 分发式队列系统
在编译过程会遇到以下几种错误,是由于你的系统默认缺少这依赖类库。
checking for boostlib &= 1.39… configure: We could not detect the boost libraries (version 1.39 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to –with-boost option. If you are sure you have boost installed, then check your version number looking in &boost/version.hpp&. See http://randspringer.de/boost for more documentation.
configure: error: could not find boost
yum install boost-devel
configure: error: could not find gperf
yum install gperf
configure: error: Unable to find libevent
yum install libevent-devel
configure: error: Unable to find libuuid
yum install libuuid-devel
你可以使用以下一条命令涵盖之前的4条命令:
yum install -y boost-devel gperf libevent-devel libuuid-devel
以上命令会一次性安装完所有的依赖类库。
(...)Read the rest of
(158 words)
& LixiPHP for , 2014. |
Post tags: , , , , , , ,
Feed enhanced by
专注于建设高品质网站!
原文地址:, 感谢原作者分享。
您可能感兴趣的代码RPM resource gperf
The search service can find package by either name (apache),
provides(webserver), absolute file names (/usr/bin/apache),
binaries (gprof) or shared libraries (libXm.so.2) in
standard path. It does not support multiple arguments yet...
The System and Arch are optional added filters, for example
System could be "redhat", "redhat-7.2", "mandrake" or "gnome",
Arch could be "i386" or "src", etc. depending on your system.
RPM resource gperfGperf is a perfect hash function generator written in C++.
stated, a perfect hash function is a hash function and a data
structure that allows recognition of a key word in a set of words
using exactly one probe into the data structure.
Install gperf if you need a program that generates perfect hash
functions.Found 1 sites for gperf
Found 114 RPM for gperf
PackageSummaryDistributionDownload
A perfect hash function generatorFedora Rawhide for aarch64A perfect hash function generatorFedora Rawhide for armhfpA perfect hash function generatorFedora Rawhide for i386A perfect hash function generatorFedora Rawhide for ppc64A perfect hash function generatorFedora Rawhide for ppc64leA perfect hash function generatorFedora Rawhide SourcesA perfect hash function generatorFedora Rawhide for x86_64A perfect hash function generatorMageia Cauldron for armv5tlA perfect hash function generatorMageia Cauldron for armv7hlA perfect hash function generatorMageia Cauldron for i586A perfect hash function generatorMageia Cauldron for x86_64A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.2 for armv6hlA Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.2 for armv7hlA Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.2 for i586A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.2 for ppcA Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.2 for ppcA Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.2 for ppcA Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.2 for x86_64A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.1 for ppcA Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.1 for ppcA Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.1 for i586A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 13.1 for x86_64A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 12.3 for i586A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 12.3 for ppcA Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 12.3 for ppcA Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 12.3 for x86_64A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 12.2 for i586A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 12.2 for x86_64A perfect hash function generatorFedora 24 for aarch64A perfect hash function generatorFedora 25 for aarch64A perfect hash function generatorFedora 25 for armhfpA perfect hash function generatorFedora 24 for armhfpA perfect hash function generatorFedora 24 for i386A perfect hash function generatorFedora 25 for i386A perfect hash function generatorFedora 24 for ppc64A perfect hash function generatorFedora 25 for ppc64A perfect hash function generatorFedora 25 for ppc64leA perfect hash function generatorFedora 24 for ppc64leA perfect hash function generatorFedora 24 for s390xA perfect hash function generatorFedora 25 for s390xA perfect hash function generatorFedora Rawhide for s390xA perfect hash function generatorFedora 25 for x86_64A perfect hash function generatorFedora 24 for x86_64A perfect hash function generatorFedora 23 for aarch64A perfect hash function generatorFedora 23 for armhfpA perfect hash function generatorFedora 23 for i386A perfect hash function generatorFedora 23 for ppc64A perfect hash function generatorFedora 23 for ppc64leA perfect hash function generatorFedora 23 for s390A perfect hash function generatorFedora 23 for s390xA perfect hash function generatorFedora 23 for x86_64A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 12.1 for i586A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 12.1 for x86_64A perfect hash function generatorFedora 22 for aarch64A perfect hash function generatorFedora 22 for armhfpA perfect hash function generatorFedora 22 for i386A perfect hash function generatorFedora 22 for ppc64A perfect hash function generatorFedora 22 for ppc64leA perfect hash function generatorFedora 22 for s390A perfect hash function generatorFedora 22 for s390xA perfect hash function generatorFedora 22 for x86_64A perfect hash function generatorCentOS 7.3.1611 for x86_64A perfect hash function generatorMageia 5 for i586A perfect hash function generatorMageia 5 for x86_64A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 11.4 for i586A Compiler Tool for Generating Perfect Hash FunctionsOpenSuSE 11.4 for x86_64A perfect hash function generatorMageia 4 for i586A perfect hash function generatorMageia 4 for x86_64A perfect hash function generatorMandriva devel cooker for i586A perfect hash function generatorMandriva devel cooker for x86_64A perfect hash function generatorMageia 3 for i586A perfect hash function generatorMageia 3 for x86_64A perfect hash function generatorMandriva 2011 for i586A perfect hash function generatorMandriva 2011 for x86_64A perfect hash function generatorMageia 1 for i586A perfect hash function generatorMageia 2 for i586A perfect hash function generatorMageia 1 for x86_64A perfect hash function generatorMageia 2 for x86_64A perfect hash function generatorMandriva 2010.1 for i586A perfect hash function generatorMandriva 2010.1 for x86_64A perfect hash function generatorCentOS 6.8 for i386A perfect hash function generatorCentOS 6.8 for x86_64A perfect hash function generatorMandriva 2010.0 for i586A perfect hash function generatorMandriva 2010.0 for x86_64A perfect hash function generatorMandriva devel 2009.1 for armv5tlA perfect hash function generatorMandriva 2009.1 for i586A perfect hash function generatorMandriva 2009.1 for x86_64A perfect hash function generatorMandriva 2009.0 for i586A perfect hash function generatorMandriva 2009.0 for x86_64A perfect hash function generatorMandriva 2008.0 for i586A perfect hash function generatorMandriva 2008.0 for x86_64A perfect hash function generatorMandriva devel cooker for ppcA perfect hash function generatorMandriva 2007.0 for i586A perfect hash function generatorMandriva 2007.1 for i586A perfect hash function generatorMandriva devel cooker for sparcA perfect hash function generatorMandriva 2007.0 for x86_64A perfect hash function generatorMandriva 2007.1 for x86_64A perfect hash function generator.CentOS 5.11 for i386A perfect hash function generator.CentOS 5.11 for x86_64A perfect hash function generatorMandriva 2006.0 for i586A perfect hash function generatorMandriva 2006.0 for i586A perfect hash function generatorMandriva devel 2006.0 for i586A perfect hash function generatorMandriva devel 2006.0 for x86_64A perfect hash function generatorMandriva 2006.0 for x86_64A perfect hash function generatorMandriva 2006.0 for x86_64A perfect hash function generatorMandriva 10.2 for i586A perfect hash function generatorMandriva 10.1 for i586A perfect hash function generatorMandriva 10.2 for x86_64A perfect hash function generatorMandriva 10.1 for x86_64A perfect hash function generatorMandriva 10.0 for i586A perfect hash function generatorMandriva devel cooker for ia64A perfect hash function generatorMandriva 9.2 for i586A perfect hash function generatorMandriva 9.1 for i586A perfect hash function generatorMandriva 9.1 for ppc
Generated byCentos 6编译安装apache&PHP&mysql
发布时间: 11:34:37
首先下载 sourcecode:
configure: error: Cannot find ldap libraries in /usr/lib
cp -frp /usr/lib64/libldap* /usr/lib/
configure: error: Cannot find MySQL header files under /usr/local/mysql
openssl,openssldevel安装:
Cannot find OpenSSL's &evp.h&
yum install openssl openssl-devel
freetype.h not found.
yum install freetype-devel
configure: error: Cannot find ldap.h
yum install openldap
yum install openldap-devel
安装apache中需要的模块:
apr&apr-util:
下载后通过
&tar -xvzf #解压
./configure
make install clear
&Libmcrypt 2.5.x:
tar -zxvf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
mkdir -p /usr/local/libmcrypt
./configure prefix=/usr/local/libmcrypt/
make && make install
卸载旧版本apache、php、mysql:
sudo yum erase httpd
sudo yum erase php php-cli
sudo yum erase mysql
wget http://mirror./apache/httpd/httpd-2.2.19.tar.bz2
tar -jxvf httpd-2.2.19.tar.bz2
cd httpd-2.2.19
sudo yum install gcc
./configure --prefix=/opt/httpd --enable-so --enable-rewrite
sudo make install
sudo /opt/httpd/bin/httpd -k start
安装完apache,用浏览器访问http://localhost,能正常显示说明装好了。下载安装mysql,
/downloads/mysql/#downloads下载这2个(64位的): MySQL-client MySQL-server
sudo yum install libaio
sudo rpm -i MySQL-client-5.5.13-1.rhel5.x86_64.rpm
sudo rpm -i MySQL-server-5.5.13-1.rhel5.x86_64.rpm
sudo /etc/init.d/mysql start
/usr/bin/mysqladmin -u root password '1'
sudo cp /usr/share/mysql/f /etc/my.cnf
sudo /etc/init.d/mysql restart
mysql -uroot -p1
下载编译PHP
http://php.net/downloads.php
sudo yum install libxml2 libxml2-devel curl curl-devel libjpeg libjpeg-devel libpng libpng-devel libmcrypt libmcrypt-devel libtool-ltdl-devel
tar -jxvf php-5.3.6.tar.bz2
cd php-5.3.6
./configure --prefix=/opt/php -with-apxs2=/opt/httpd/bin/apxs --with-curl --with-mcrypt --enable-mbstring --with-iconv --with-gd -with-jpeg-dir=/usr/local/lib --enable-pdo --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd
sudo make install
sudo cp php.ini-development /opt/php/lib/php.ini
sudo ln -s /opt/php/bin/php /usr/bin/php
sudo vi /opt/php/lib/php.ini
如果需要apache具有fastcgi功能,其编译选项为:
./configure --prefix=/usr/local/php
--with-config-file-path=/usr/local/php/etc
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-iconv-dir=/usr/local
--with-freetype-dir
--with-jpeg-dir
--with-png-dir
--with-zlib
--enable-gd-native-ttf
--with-libxml-dir=/usr
--enable-xml
--disable-rpath
--enable-discard-path
--enable-safe-mode
--enable-bcmath
--enable-shmop
--enable-sysvsem
--enable-inline-optimization
--with-curl
--with-curlwrappers
--enable-mbregex
--enable-fastcgi
--enable-fpm
--enable-force-cgi-redirect
--enable-mbstring
--with-mcrypt
--with-openssl
--with-mhash
--enable-pcntl
--enable-sockets
--with-ldap
--with-ldap-sasl
--with-xmlrpc
--enable-zip
--enable-soap
--without-pea
把include_path前面的分号删除,改成include_path = "/opt/php/lib/php"
sudo vi /opt/httpd/conf/httpd.conf
在最下面加入一行AddHandler application/x-httpd-php .php
sudo /opt/httpd/bin/httpd -k restart
sudo vi /opt/httpd/htdocs/phpinfo.php
phpinfo.php的内容如下:
phpinfo();
安装完php,重启apache,用浏览器访问http://localhost/phpinfo.php,能正常显示说明php装好了。搜索mysqlnd、pdo_mysql、mysqli,如果有,则说明php能访问mysql。
PHP常用配置
/sink_cup/archive//php_ini.html把apache加入系统service,开机自启动。
sudo cp /opt/httpd/bin/apachectl /etc/init.d/httpd
sudo vi /etc/init.d/httpd
在文件开头加入下面几行:
# chkconfig: 2345 85 15
# description: Apache is a World Wide Web server.
sudo chmod +x /etc/init.d/httpd
sudo /sbin/chkconfig --add httpd
sudo /sbin/chkconfig --list httpd
sudo ln -s /sbin/chkconfig /usr/bin/chkconfig
sudo ln -s /sbin/service /usr/bin/service
把mysql加入系统service,开机自启动
sudo /sbin/chkconfig --list mysql
通过rpm安装的mysql,已经开机自启动了。
安装php扩展ssh2
http://sourceforge.net/projects/libssh2/
./configure
sudo make install
再安装ssh2
http://pecl.php.net/package/ssh2
/opt/php/bin/phpize && ./configure --with-ssh2 && make
sudo make install
在/opt/php/lib/php.ini中加1行:
extension=ssh2.so
centos 6.2安装中文输入法
yum install "@Chinese Support"
//安装中文输入法
1) Configure: error: xml2-config not found. Please check your libxml2 installation.
Solutions :
Quote:#yum install&libxml2&libxml2-devel&(For Redhat & Fedora)
# aptitude install libxml2-dev&&&&& (For ubuntu)
2) Checking for pkg-config& /usr/bin/pkg-configconfigure: error: Cannot find OpenSSL&s &evp.h&
Solutions :
Quote:#yum install&openssl&openssl-devel
3) Configure: error: Please reinstall the BZip2 distribution
Solutions :
Quote:#&yum install&bzip2&bzip2-devel
4) Configure: error: Please reinstall the libcurl distribution -easy.h should be in &curl-dir&/include/curl/
Solutions :
Quote:#&yum install&curl&curl-devel & (For Redhat & Fedora)
# install libcurl4-gnutls-dev&&& (For Ubuntu)
5) Configure: error: libjpeg.(also) not found.
Solutions :
Quote:#&yum install&libjpeg&libjpeg-devel
6) Configure: error: libpng.(also) not found.
Solutions :
Quote:#&yum install&libpng&libpng-devel
7) Configure: error: freetype.h not found.Solutions :
Quote:#yum install freetype-devel
8) Configure: error: Unable to locate gmp.h
Solutions :
Quote:#&yum install gmp-devel
9) Configure: error: Cannot find MySQL header files under /usr.Note that the MySQL client library is not bundled anymore!
Solutions :
Quote:#&yum install mysql-devel&&&&&&&&&&& (For Redhat & Fedora)
# apt-get install libmysql++-dev&&&&& (For Ubuntu)
10) Configure: error: Please reinstall the ncurses distribution
Solutions :
Quote:#&yum install&ncurses&ncurses-devel
11) Checking for unixODBC support& configure: error: ODBC header file &/usr/include/sqlext.h& not found!
Solutions :
Quote:#&yum install unixODBC-devel
12) Configure: error: Cannot find pspell
Solutions :
Quote:#&yum install pspell-devel
13) configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Solutions :
Quote:#&yum install libmcrypt libmcrypt-devel&&& (For Redhat & Fedora)
# apt-get install libmcrypt-dev
14) Configure: error: snmp.h not found. Check your SNMP installation.
Solutions :
#&yum install&net-snmp&net-snmp-devel
来源:/weisteve/archive//2596652.h

我要回帖

更多关于 centos 6.5 安装mysql 的文章

 

随机推荐