Fedora24下MySQL开发环境搭建

当初oracle收购mysql,开源社区采用了mysql的分支MariaDB代替了mysql数据库,现在由开源社区维护,centos,fedora,red hat都采用了MariaDB,因此默认安装的是MariaDB,需要指定源才能装MySQL。 //采用官方的 sudo dnf install community-mysql-5.7.15-1.fc24.x86_64 community-mysql-devel-5.7.15-1.fc24.x86_64 community-mysql-libs-5.7.15-1.fc24.x86_64 community-mysql-server-5.7.15-1.fc24.x86_64 安装完毕开启mysql服务: service mysqld start 然后使用命令查看是否已安装mysql的相应库和包含: find /usr -name “*mysql*”

Read More

Fedora24下MongoDB3.2的C++开发环境搭建

//开发编译需要boost、bson(Binary JSON)、g++、stdc++ dnf install boost-1.60.0-7.fc24.x86_64 boost-thread-1.60.0-7.fc24.x86_64 boost-openmpi-devel-1.60.0-7.fc24.x86_64 //boost dnf install libbson-1.3.5-3.fc24.x86_64 //bson dnf install gcc-c++-x86_64-linux-gnu-6.1.1-2.fc24.x86_64 //g++ dnf install libstdc++-docs-6.2.1-2.fc24.x86_64 libstdc++-devel-6.2.1-2.fc24.x86_64 //stdc++ //安装mongoDB dnf install libmongo-client-0.1.8-4.fc24.x86_64 //db客户端 dnf install mongodb-server-3.2.8-2.fc24.x86_64 //db服务端 dnf install mongo-cxx-driver-devel-1.1.2-2.fc24.x86_64 //db的C++开发驱动 dnf … “Fedora24下MongoDB3.2的C++开发环境搭建”

Read More

ubuntu16.04 安装apache2报错 解决方案

从ubuntu 14.04 升级ubuntu16.04后,apache2无法启动,如下报错: Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details. failed! 卸载apache2 再次重装仍报错: Job for apache2.service failed … “ubuntu16.04 安装apache2报错 解决方案”

Read More

Linux下 编译libcurl

官网下载libcurl 解压 tar -zxvf curl-7.51.0.tar.gz cd curl-7.51.0.tar.gz ./buildconf ./configure make sudo make install 在./configure –enable-pthreads后,会显示默认环境下安装后能使用的功能,若是满足需求就直接make和sudo make install。 如果缺少需要的功能,则先去安装相应的环境后再编译安装curl。 eg: 若要开启SSL support和zlib support:(Centos) yum install openssl-libs openssl-devel 若要支持https需安装libssh2:(Centos) yum install libssh2-devel 若要支持PSL 验证 Cookie 和证书的 Domain … “Linux下 编译libcurl”

Read More

编译libevent-2.1.6beta

从官网下载libevent 编译平台Debian(also Ubuntu) //解压 tar -zxvf libevent-release-2.1.6-beta.tar.gz cd libevent-release-2.1.6-beta 执行./autogen.sh时报错 ./autogen.sh: 11: ./autogen.sh: aclocal: not found //是因为缺少automake 安装即可 sudo apt-get install automake //再次执行报以下错误 configure.ac:137: error: possibly undefined macro: AC_PROG_LIBTOOL //是因为缺少libtool,安装即可 sudo apt-get install libtool

Read More