This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone [email protected]:jemalloc/jemalloc.git | |
$ autoconf | |
$ ./configure | |
$ make | |
$ make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## インストール | |
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
$ rbenv install 2.1.2 | |
$ gem install fluent | |
## 確認 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--enable-debug 不正なインプットや動作についてアサート機能を有効にする。 | |
--enable-prof ヒープ使用状況のプロファイリングとメモリリークの検出機能を有効にする。 | |
--disable-fill メモリ領域をゼロ/もしくは不正な値で埋める機能を無効にする。 | |
--enable-lazy-lock pthread_create() を検出し、アプリケーションがシングルスレッドのうちはロックを行わないようにする。 | |
--with-jemalloc-prefix=<prefix> 標準関数にprefixをつける。malloc() が<prefix>_malloc() のようになる。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install libssl-dev | |
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv/ | |
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
$ rbenv install 2.1.2 | |
$ rbenv global 2.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cp -r ${ANYWHERE}/gtest-1.7.0 ./msgpack-c/test | |
$ cd msgpack-c | |
$ cmake . -DGTEST_BOTH_LIBRARIES=test/gtest-1.7.0 -DGTEST_INCLUDE_DIR=test/gtest-1.7.0/include -DMSGPACK_BUILD_TESTS=ON -DGTEST_LIBRARY=test/gtest-1.7.0/libgtest.a -DGTEST_MAIN_LIBRARY=test/gtest-1.7.0/libgtest_main.a | |
$ make | |
$ cd test | |
$ ./msgpack_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure('2') do |config| | |
config.vm.hostname = 'ubuntu1404-fluentd' | |
config.vm.provider :digital_ocean do |provider, override| | |
provider.client_id = 'YOUR_CLIENT_ID' | |
provider.api_key = 'YOUR_API_KEY' | |
provider.ssh_key_name = 'YOUR_SSH_KEY_NAME' | |
provider.token = 'YOUR_TOKEN' | |
override.ssh.private_key_path = '~/.ssh/id_rsa' | |
override.vm.box = 'digital_ocean' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install qemu-user-static |