centos libssl dev,linux如何安装deb软件

今天给各位分享centos libssl dev的知识,其中也会对linux如何安装deb软件进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!

Linux系统中怎么安装Git

一、使用包管理器安装Git

Git已经被所有的主流Linux发行版所支持。所以安装它最简单的方法就是使用各个Linux发行版的包管理器。

1、Debian, Ubuntu,或 Linux Mint

$sudoapt-getinstallgit

2、Fedora, CentOS或 RHEL

$sudoyuminstallgit或$sudodnfinstallgit

3、Arch Linux

$sudopacman-Sgit

4、OpenSUSE

$sudozypperinstallgit

5、Gentoo

$emerge--ask--verbosedev-vcs/git

二、从源码安装Git

如果由于某些原因,希望从源码安装Git,按照如下介绍操作。

1、安装依赖包

在构建Git之前,先安装它的依赖包。

//Debian,Ubuntu或LinuxMint

$sudoapt-getinstalllibcurl4-gnutls-devlibexpat1-devgettextlibz-devlibssl-devasciidocxmltodocbook2x

//Fedora,CentOS或RHEL

$sudoyuminstallcurl-develexpat-develgettext-developenssl-develzlib-develasciidocxmltodocbook2x

2、从github官网下载最新版本的Git。然后在/usr下构建和安装。

注意,如果打算安装到其他目录下(例如:/opt),那就把“--prefix=/usr”这个配置命令使用其他路径替换掉。

$cdgit-x.x.x

$makeconfigure

$。/configure--prefix=/usr

$makealldocinfo

$sudomakeinstallinstall-docinstall-htmlinstall-info

如何安装python3.6.2

下载python安装包,然后双击运行,弹出如下对话框,记得勾选最后一项“Add python 3.6 to PATH",然后点击”Customize installatiion“自定义安装。

2

然后点击”Next“进行下一步安装。

3

这一步勾选按下图所示,然后选择安装路径,点击”Install“开始安装。

4

安装过程很快就结束,完成后点击”Close“结束安装。

END

配置环境变量

接下来我们需要配置一下环境变量,点击系统中的”高级系统设置“,如下图所示。

进入系统属性对话框,选择”环境变量“这一项。

在系统变量这一栏中点击Path那一项,如下图所示。

然后我们新建一个,点击”新建“按钮,如下图所示。

在新加的一栏中输入python的安装路径。

最后点击”确定“按钮完成设置。

debian8怎么安装php7

debian8编译安装 php7

目录(?)[-]

Please reinstall the libcurl distributionCannot find OpenSSL

configure error Unable to locate gmph

Can not find recodeh anywhere under usr usrlocal usr optCannot find pspell

Please reinstall the mysql distribution

mcrypth not found Please reinstall libmcryptxml2-config not found

安装编译器

apt-get install build-essential autoconf automake libtool bison re2c获取PHP安装包

wget 安装dev包

apt-get install libxml2-dev libssl-dev libbz2-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libgmp-dev libgmp3-dev libmcrypt-dev libmysqlclient15-dev libpspell-dev librecode-dev进行编译安装

./buildconf//用来生成configure脚本

./configure\

--prefix=/usr\

--with-config-file-path=/etc\

--enable-mbstring\

--enable-zip\

--enable-bcmath\

--enable-pcntl\

--enable-ftp\

--enable-exif\

--enable-calendar\

--enable-sysvmsg\

--enable-sysvsem\

--enable-sysvshm\

--enable-wddx\

--with-curl\

--with-mcrypt\

--with-iconv\

--with-gmp\

--with-pspell\

--with-gd\

--with-jpeg-dir=/usr\

--with-png-dir=/usr\

--with-zlib-dir=/usr\

--with-xpm-dir=/usr\

--with-freetype-dir=/usr\

--with-t1lib=/usr\

--enable-gd-native-ttf\

--enable-gd-jis-conv\

--with-openssl\

--with-pdo-mysql=/usr\

--with-gettext=/usr\

--with-zlib=/usr\

--with-bz2=/usr\

--with-recode=/usr\

--with-mysqli=/usr/bin/mysql_config

备注:错误1:Cannot find OpenSSL's libraries解决:

确认已安装过 openssl、libssl-dev包,还是会提示该错误;解决办法:

root@test2:~/php-5.3.27# find/-name libssl.so输出结果为:/usr/lib/x86_64-Linux-gnu/libssl.so初步判断它可能只会在/usr/lib/下寻找 libssl.so文件,于是:

ln-s/usr/lib/x86_64-linux-gnu/libssl.so/usr/lib错误2:debian Please reinstall the libcurl distribution解决:

# RetHat CentOS or Fedora使用下面安装命令yum install curl curl-devel

# Debian or Ubuntu使用下面的安装命令

apt-get install curl

apt-get install libcurl4-gnutls-dev

错误3:Unable to locate gmp.h解决:

在下载 gmp源码包,接着./configure&& make&& make install编译安装

make&&make install

报错处理

Please reinstall the libcurl distributionaptitude search libcurl4

aptitude install libcurl4-gnutls-dev

Cannot find OpenSSL’

wget openssl-1.0.2j.tar.gz

cd openssl-1.0.2j

./config

make&& make install

configure: error: Unable to locate gmp.h

sudo apt-get install libgmp-dev libgmp3-devln-s/usr/include/x86_64-linux-gnu/gmp.h/usr/include/gmp.hCan not find recode.h anywhere under/usr/usr/local/usr/opt.

apt-get install librecode-dev

Cannot find pspell

apt-get install libpspell-dev

Please reinstall the mysql distribution

apt-get install libmysqlclient15-dev

mcrypt.h not found. Please reinstall libmcrypt.

apt-get install libmcrypt-dev

xml2-config not found

apt-get install libxml2-dev

阅读剩余
THE END