LoginSignup
0
1

More than 5 years have passed since last update.

hhvmをソースからインストールする方法

Last updated at Posted at 2017-04-30

hhvm2.4.0をCentOS6にインストールした際の作業記録をまとめました。

環境


  • CentOS6
  • gcc4.7
関連モジュールのインストール
yum --enablerepo=epel install -y openldap-devel memcached cmake mysql-devel pcre-devel gd-devel libicu-devel bzip2-devel oniguruma-devel readline-devel libc-client-devel libcap-devel pam-devel elfutils-libelf-devel libxslt-devel libevent-devel libmcrypt-devel libdwarf-devel ncurses-devel
boostのインストール
wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download -O boost_1_55_0.tar.gz
tar xzvf boost_1_55_0.tar.gz
cd boost_1_55_0
./bootstrap.sh -libdir=/usr/lib64 --includedir=/usr/local/include
./b2
./b2 install
ldconfig
curlのインストール
git clone git://github.com/bagder/curl.git
cd curl
./buildconf
./configure --prefix=/usr/local --libdir=/usr/lib64
make -j8 2>&1 | tee make.log
make install
ldconfig
glogのインストール
cd /usr/local/src/
git clone https://github.com/google/glog
cd glog/
autoreconf --force --install 
./configure --prefix=/usr/local --libdir=/usr/lib64
make -j8 2>&1 | tee make.log
make install
ldconfig
libmemcachedのインストール
cd /usr/local/src/
wget http://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
tar xzvf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18
./configure --prefix=/usr/local --libdir=/usr/lib64
make -j8 2>&1 | tee make.log
make install
ldconfig
jemallocのインストール
cd /usr/local/src/
wget http://www.canonware.com/download/jemalloc/jemalloc-3.5.1.tar.bz2
tar xjvf jemalloc-3.5.1.tar.bz2
cd jemalloc-3.5.1
./configure
make -j8 2>&1 | tee make.log
make install
ldconfig
tbbのインストール
cd /usr/local/src/
wget https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb2017_20161004oss_lin_0.tgz
tar -xzf tbb2017_20161004oss_lin_0.tgz
cd tbb2017_20161004oss
mkdir -p /usr/include/serial
cp -a include/serial/* /usr/include/serial/
mkdir -p /usr/include/tbb
cp -a include/tbb/* /usr/include/tbb/
cp ./lib/intel64/gcc4.4/libtbb.so.2 /usr/lib64/
ln -s /usr/lib64/libtbb.so.2 /usr/lib64/libtbb.so
# ldconfig
hhvmのインストール
export CMAKE_PREFIX_PATH=/usr/local
git clone git://github.com/facebook/hhvm.git        
cd hhvm
git checkout HHVM-2.4.0
git submodule update --init --recursive
cmake .
make -j8 2>&1 | tee make.log
cp hphp/hhvm/hhvm /usr/bin/
# hhvm --version
HipHop VM 2.4.0 (rel)
Compiler: tags/HHVM-2.4.0-0-gc82fcd8e6199c500454b1a8b930a876ef2c1522b
Repo schema: a536a1d1567b1fb5d722c0349a3296d4e8589f96
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1