`

编译安装MYSQL,遇到configure: error: No curses/termcap library found的解决方法!

阅读更多
在编译mysql源码时碰到如下问题,
checking for tgetent in -ltermcap... no
checking for termcap functions library... configure: error: No curses/termcap library found

解决方法如下:
  ./configure --with-named-curses-libs=/usr/lib/libncursesw.so.5

./configure??? ——有什么用?google来自论坛的说法:
tar.gz(bz或bz2等)结尾的源代码包,这种软件包里面都是源程序,没有编译过,需要编译后才能安装,安装方法为:
1、打开一个SHELL,即终端
2、用CD 命令进入源代码压缩包所在的目录
3、根据压缩包类型解压缩文件(*代表压缩包名称)
tar -zxvf ****.tar.gz
tar -jxvf ****.tar.bz(或bz2)
4、用CD命令进入解压缩后的目录
5、输入编译文件命令: ./configure 《请问这句有什么用 特别是这个 ./ 是不是当前目录》
6、然后是命令:make
7、再是安装文件命令:make install
8、安装完毕
./configure 是干吗的??有什么用??
configure是一个脚本,它能设置源程序来适应各种不同的操作系统平台,并且根据不同的系统来产生合适的Makefile,从而可以使你的源代码能在不同的操作系统平台上被编译出来。它根据Makefile.in来生成一个Makefile.

./configure的主要工作是,检测系统当前是否有安装编译源代码必须的软件包,并根据具体计算机环境和configure后面附加的参数生成Makefile文件。


关于:./configure --prefix 作用?
   不指定prefix,则可执行文件默认放在/usr/local/bin,库文件默认放在/usr/local/lib,配置文件默认放在/usr/local/etc。其它的资源文件放在/usr/local/share。你要卸载这个程序,要么在原来的make目录下用一次make uninstall(前提是make文件指定过uninstall),要么去上述目录里面把相关的文件一个个手工删掉。
指定prefix,直接删掉一个文件夹就够了。
1
1
分享到:
评论

相关推荐

    mysql5.0.8完整安装

    mysql5.0.8安装,解决configure: error: No curses/termcap library found问题

    PHP编译configure时常见错误的总结

    PHP编译configure时常见错误的总结 PHP的安装虽然有时候很简单,可是如果应用一多,我们安装起来就很头痛了!...1、configure: error: No curses/termcap library found 网上有的说法是:–with-named-c

    svn安装过程中遇到错误需要的文件包

    错误 configure: error: could not find library containing ...configure: error: no XML parser was found: expat or libxml 2.x required 解放方法: http://blog.csdn.net/cnaning/archive/2009/02/09/3870085.aspx

    PHP编译安装中遇到的两个错误和解决方法

    一、PHP configure: error: Cannot find ldap libraries in /usr/lib 今天在CentOS 64位下编译安装PHP5.4.8。...解决方法: 复制代码 代码如下: cp -frp /usr/lib64/libldap* /usr/lib/ 重新configure即可 二、P

    PHP 仿陌陌直播

    如果降低延迟也不是没有方法,可以设置切片生成的大小以及访问的速度,但是这样大大增加了服务器的压力。 当然,我们也可以用rtmp拉流工具(VLC等)来看该直播,延迟大概在2-5S左右,拉流地址与推流地址一致。 后台...

    nginx安装教程

    # 安装PCRE库 cd /usr/local/src sudo wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz sudo tar -zxvf pcre-8.41.tar.gz cd pcre-8.41 sudo ./configure sudo make sudo make ...

    国际旅游联盟集团TUI-201501-Commerzbank German Investment Seminar_By_CFO.pdf.pdf

    国际旅游联盟集团TUI-201501-Commerzbank German Investment Seminar_By_CFO.pdf.pdf

    安装lamp报错信息及解决方法

    /use/lib//usr/lib/libdb-4.2.so: could not read symbols: File in wrong format Notice: Following unknown configure ...configure: error: mysql configure failed. Please check config.log for more information

    keeplived离线安装openssl-devel依赖包

    在linux系统centos6.5版本中安装keeplived时,需要安装penssl-devel依赖包,但是服务器是不允许连接外网(互联网)的,无法使用yum命令进行安装操作,所以本人研究了一下如何在离线状态下安装penssl-devel依赖包。...

    gmp 5.0.4 安装GCC必需文件

    安装GCC必需的三个文件(gmp、mpfr、mpc)之一,gmp,安装此库之前需要先安装M4,否则无法完成安装。另:上述文件我已上传至我的资源,如有需要下载即可。 GMP is a free library for arbitrary precision ...

    nginx-1.0.5最新稳定版

    如果安装时遇到错误的解决方法。 1. 缺少pcre 状况:./configure: error: the HTTP rewrite module requires the PCRE library. 解决:yum -y install pcre-devel 安装相应的包 2.缺少zlib 状况: ./configure: ...

    已解决:gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied……

    运行sudo npm install -g webpack@4.35.2 安装指定版本的webpack出现如下错误: gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/mac-pro/.nvm/versions/node/v10.16.0/...

    CentOS 7.0编译安装cmake和mysql安装包

    一、安装MySQL 1、安装cmake cd /usr/local/src tar zxvf cmake-2.8.11.2.tar.gz cd cmake-2.8.11.2 ./configure make make install 2、安装MySQL groupadd mysql #添加mysql组 useradd -g mysql mysql -s...

    tensorflow安装遇到的问题

    使用国内源安装tensorflow: pip install -i https://mirrors.aliyun.com/pypi/simple/ --upgrade tensorflow-gpu==1.5.0 pip install -i https://mirrors.aliyun.com/pypi/simple/ --upgrade keras==2.1.6 国内镜像...

    cryptopp-5.6.2-2.el6.x86_64.rpm&& cryptopp-devel-5.6.2-2.el6.x86_64.rpm

    ceph源码编译时出现下列现象时,需要下载这两个rpm包: checking for NSS... no configure: error: in `/root/workspace/...configure: error: no suitable crypto library found See `config.log' for more details

    lz4最新版,编译spice-gtk-0.35时使用

    解决configure: error: lz4 support requested but liblz4 >= 129 could not be found, export PREFIX=安装目录 &make; &make; install

    device-mapper.1.02.28.tgz

    在编译parted-3.2时,报错:configure: error: libdevmapper could not be found,找到device-mapper.1.02.28,并下了下来。 这个源码藏得有点深,分享出来给大家

    Linux 下 Nginx的安装:(解压,进入目录里面执行,./configure –-> make -> sudo make install)

    NULL 博文链接:https://jackroomage.iteye.com/blog/1687401

    rabbit安装详解

    1、安装erlang 语言环境 安装依赖文件 yum install gcc glibc-devel make ncurses-devel openssl-devel xmlto 进入 http://www.erlang.org/download.html 选择源文件下载 wget ...

    httpd-2.4.41.rar

    源码编译:亲测有效! 1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file or directory 解决: configure中#$RM "$cfgfile" 3、apr-util-1.6.1.tar 报错: fatal error:...

Global site tag (gtag.js) - Google Analytics