投稿

4月, 2016の投稿を表示しています

gem install pg -v '0.18.4' error!!

# gem install pg -v '0.18.4' Fetching: pg-0.18.4.gem (100%) Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /usr/local/bin/ruby -r ./siteconf20160426-20109-1ck7isn.rb extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/$(RUBY_BASE_NAME) --with-pg --without-pg --enable-windows-cross

extundelete

先日、centos6の開発サーバー上で作業をしていた際に、あるファイルを消してしまい、焦った。グーグル先生に問い合わせると、「extundelete」 というファイル復活コマンドがあることを教えてくれた。 使い方 1.ドライブを調べる # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup-lv_root 50G 1.6G 46G 4% / tmpfs 939M 0 939M 0% /dev/shm /dev/vda1 477M 36M 416M 8% /boot /dev/mapper/VolGroup-lv_home 144G 60M 136G 1% /home 2.復活するファイルを指定してextundeleteコマンドを実行 # extundelete --restore-file /tmp/ore.rpm /dev/mapper/VolGroup-lv_root NOTICE: Extended attributes are not restored. WARNING: EXT3_FEATURE_INCOMPAT_RECOVER is set. The partition should be unmounted to undelete any files without further data loss. If the partition is not currently mounted, this message indicates it was improperly unmounted, and you should run fsck before continuing. If you decide to continue, extundelete may overwrite some of the deleted files and make recovering those files impossible. You should unmount the file system and check it with

ドメインサーチ

https://www.makko.biz/whois/?q=bg.bahaiquotesillustrated.info