投稿

2013の投稿を表示しています

python import win32com.client -> EOFError in gencache.py

症状   import win32com.client   File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 11, in <module>     import gencache   File "C:\Python27\lib\site-packages\win32com\client\gencache.py", line 662, in <module>     __init__()   File "C:\Python27\lib\site-packages\win32com\client\gencache.py", line 56, in __init__     _LoadDicts()   File "C:\Python27\lib\site-packages\win32com\client\gencache.py", line 109, in _LoadDicts     version = p.load() EOFError   対処      move  C:\Python27\Lib\site-packages\win32com\gen_py\dicts.dat C:\Python27\Lib\site-packages\win32com\gen_py\dicts.dat.old  

Python スクリプトで出力している内容が Jenkins の Console にリアルタイムで出力されない。

症状 スクリプトをすべて完了しないと Python 内で行っている print の内容が、コンソールに出力されない。 対処 python の起動オプションに -u を追加する。

gvim を起動、あるいはコマンドを打とうとすると vp_pipe_open のエラーが起きる

対処 ちょっとちがうかも。 コマンドプロンプトより where gvim where vim を実行しパスが通っていたら、環境変数のPATHより取り除く。 ただし、システムパスになっている場合は、gvim.exe 、 vim.exe を適当な名前にリネーム         する。

rake redmine:plugins:migrate RAILS_ENV=production を行うと Duplicate Error Column Name などのエラーが起こる

症状        rake redmine:plugins:migrate RAILS_ENV=production       を実行すると、すでに存在するテーブル、あるいはすでに存在するカラムをaddしようとしてい       る旨のエラーがでる。 原因 DB移行作業時に'schema_migrations'の移行がされていなかったため、現行データベースの状況にあった適切なMigrationが実行できない。 対処 yaml_db のソースコードを修正する: vi ./.rvm/gems/ruby-1.9.3-p286/gems/yaml_db-0.2.3/lib/serialization_helper.rb 161行目ぐらいにある ActiveRecord::Base.connection.tables.reject { |table| ['schema_info', 'schema_migrations'].include?(table) } を ActiveRecord::Base.connection.tables.reject { |table| ['schema_info'].include?(table) }        とする。

rake db:migrate RAILS_ENV=production にて uninitialized constant Backlogs::IssueQueryPatch::RbRelease のエラーが出る

症状 rake db:migrate RAILS_ENV=production (in /home/redmine/redmine-2.3.1) rake aborted! uninitialized constant Backlogs::IssueQueryPatch::RbRelease /home/redmine/redmine-2.3.1/plugins/redmine_backlogs-1.0.5/lib/backlogs_issue_query_patch.rb:31:in `block in included' /home/redmine/redmine-2.3.1/plugins/redmine_backlogs-1.0.5/lib/backlogs_issue_query_patch.rb:25:in `class_eval' /home/redmine/redmine-2.3.1/plugins/redmine_backlogs-1.0.5/lib/backlogs_issue_query_patch.rb:25:in `included' /home/redmine/redmine-2.3.1/plugins/redmine_backlogs-1.0.5/lib/backlogs_issue_query_patch.rb:145:in `include' /home/redmine/redmine-2.3.1/plugins/redmine_backlogs-1.0.5/lib/backlogs_issue_query_patch.rb:145:in `<top (required)>' /home/redmine/redmine-2.3.1/plugins/redmine_backlogs-1.0.5/init.rb:27:in `block in <top (required)>' /home/redmine/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:440:in `_run__227089559__prepare__360480817

rake db:dump で invalid byte sequence in UTF-8 エラーが出る

症状 rake db:dump RAILS_ENV=production --trace ** Invoke db:dump (first_time) ** Invoke db:schema:dump (first_time) ** Invoke environment (first_time) ** Execute environment ** Invoke db:load_config (first_time) ** Execute db:load_config ** Execute db:schema:dump ** Invoke db:data:dump (first_time) ** Invoke environment ** Execute db:data:dump invalid byte sequence in UTF-8 /home/redmine/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:225:in `count' /home/redmine/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:225:in `binary?' /home/redmine/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:234:in `visit_String' /home/redmine/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:103:in `accept' /home/redmine/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:313:in `block in visit_Array' /home/redmine/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych/visitors/yam

gem install nokogiri -v '1.5.10' にて Errorが起きる

症状 gem install nokogiri -v '1.5.10' Building native extensions.  This could take a while... ERROR:  Error installing nokogiri:         ERROR: Failed to build gem native extension.         /home/redmine/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb checking for libxml/parser.h... no ----- libxml2 is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. ----- *** 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=/home/redmine/.rvm/rubies/ruby-1.9

gvim を 香り屋 version にしてから、作成中のHTMLを開くと 改行されずに ^M でつながった一文になった。

対処 set ff=unix で保存して、開きなおしてもなぜか dosになる? .vimrc に set fileformat=unxを記述。 問題のHTMLを開き改行コードを置換する: :%s/^M/\r/g ^Mは 「Ctrl + V」「Ctrl + M」

Fody: Could not find a weaver named 'PropertyChanged'.

症状 Fody: Could not find a weaver named 'PropertyChanged'. If you have nuget package restore turned on you probably need to do a build to download the weavers. Alternatively you may have added a weaver to your 'FodyWeavers.xml' and forgot to add the appropriate nuget package. Perhaps you need to run 'Install-Package PropertyChanged.Fody'. This url may provide more information http://nuget.org/packages/PropertyChanged.Fody/ 対処 notepad $(your_solution_dir)\nuget.config <configuration>   <config>     <add key="repositorypath" value="..\..\your_package_dir\packages" />   </config> </configuration>

VMware PlayerのゲストPCが起動してくれない

症状  [ 仮想マシンの再生 ]ボタンをおすと以下のエラーダイアログが出る: パワーオン中にエラーが発生しました: Transport (VMDB) error -44: Message. The VMware Authorization Service is not running。 対処 Windowsサービスより、[ VMware Authorization Service ] を選んで開始させる。

Thunderbirdで起動時にメールの新着チェックをしてくれない

対処 アカウント設定画面にて、下の方にある「アカウント操作」プルダウンボタンから、該当アカウントを「規定のアカウントに設定」に設定する。

android エミュレーターがやっぱり動かない。

イメージ
症状 前と同じ 対処 1. [tools] - [Android] - [AVD Manager] のリストよりデバックで使用しているAVDを選び、[EDI] ボタンを押す。    2. メモリサイズを1024から768に変更して、OKボタンを押す。 参考 Eclipse IDE with built-in ADT で Android 4.2 開発環境を構築する

android エミュレーターが動かない。

症状  Android Studio で RUN すると 「 emulator-arm.exeは動作を停止しました 」のエラーダイアログが表示し、エミュレーターで動作確認ができない。 対処 Android Studio をアンインストールし、新規ファイルをダウンロードしてインストールする。 【追記】 Android Studio を「管理者として実行」すると動きました。 【さらに追記】 android エミュレーターがやっぱり動かない。 参考 updateしたら症状が起きた。 やってみてダメだったこと: エミュレーターの作り直し エミュレーターのメモリサイズを変更

veewee vbox build で セグメントエラー が発生する

症状 [foo@s11-chef vagrant_vm]$ veewee vbox build CentOS-6.3-x86_64-minimal-ja --force Downloading vbox guest additions iso v 4.2.10 - http://download.virtualbox.org/virtualbox/4.2.10/VBoxGuestAdditions_4.2.10.iso Checking if isofile VBoxGuestAdditions_4.2.10.iso already exists. Full path: /home/foo/vagrant_vm/iso/VBoxGuestAdditions_4.2.10.iso The isofile VBoxGuestAdditions_4.2.10.iso already exists. Building Box CentOS-6.3-x86_64-minimal-ja with Definition CentOS-6.3-x86_64-minimal-ja: - nogui : false - postinstall_include : - force : true - debug : false - postinstall_exclude : - redirectconsole : false - auto : false The isofile CentOS-6.3-x86_64-minimal.iso already exists. VBoxManage unregistervm  "CentOS-6.3-x86_64-minimal-ja" --delete Deleting vm CentOS-6.3-x86_64-minimal-ja Creating vm CentOS-6.3-x86_64-minimal-ja : 480M - 1 CPU - RedHat_64 Creating new harddrive of size 10140, format VDI, variant Standard Attaching disk: /home/foo/VirtualBox VMs/C

Vagrant で Base Box を作成しようとすると `open_http': 404 Not found (OpenURI::HTTPError) が発生する

症状 # vagrant basebox build mycentosbox [mycentosbox] Downloading vbox guest additions iso v  - http://download.virtualbox.org/virtualbox//VBoxGuestAdditions_.iso [mycentosbox] Creating an iso directory [mycentosbox] Checking if isofile VBoxGuestAdditions_.iso already exists. [mycentosbox] Full path: /root/iso/VBoxGuestAdditions_.iso /usr/lib/ruby/1.8/open-uri.rb:277:in `open_http': 404 Not found (OpenURI::HTTPError)         from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'         from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'         from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'         from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'         from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'         from /usr/lib/ruby/1.8/open-uri.rb:518:in `open'         from /usr/lib64/ruby/gems/1.8/gems/veewee-0.3.7/lib/veewee/provider/core/helper/iso.rb:30:in `download_progress'         from /usr/lib64/ruby/gems/1.8/gems/veewee-0.3.7/lib/

Sphinx を Python3 で試す

至った経緯 すでに Python 2が入っており、こちらがメイン。共存も考えたが面倒くさいので Portable Python を使うことにした。 手順 1. Portable Python をダウンロード&適当なフォルダにインストールする。 2. インストールしたフォルダに以下の内容をswitch_py3.batで保存する。 set path=%~d0%~p0App;%~d0%~p0App\Tools\Scripts;%~d0%~p0App\Scripts                 start 3. http://python-distribute.org/distribute_setup.py を適当なフォルダにダウンロードす  る。 4. 先ほど作成したswitch_py3.batを実行する。 5. 表示されたDOSプロンプト上から python distribute_setup.py を実行 6. easy_install pip 7. pip install sphinx 課題 いくつかのプラグイン( blockdiag とか、 blockdiagとか、 blockdiag など) がPython3に対応していない模様。

vagrant で共有フォルダが共有されない?

症状 [syamamura@s11-chef vagrant_vm]$ vagrant up [default] Importing base box 'base'... [default] Matching MAC address for NAT networking... [default] Clearing any previously set forwarded ports... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Booting VM... [default] Waiting for VM to boot. This can take a few minutes. [default] VM booted and ready for use! [default] The guest additions on this VM do not match the install version of VirtualBox! This may cause things such as forwarded ports, shared folders, and more to not work properly. If any of those things fail on this machine, please update the guest additions and repackage the box. Guest Additions Version: 4.2.8 VirtualBox Version: 4.2.10 対処 Guest Additions と VirtualBox のバージョンを合わせる。 $ vagrant ssh

chef-clien で rubygems/format (LoadError) が起きる

症状 $ chef-client /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require': no such file to load -- rubygems/format (LoadError)         from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'         from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/provider/package/rubygems.rb:34         from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'         from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'         from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/providers.rb:60         from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'         from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'         from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.4/bin/../lib/chef.rb:25         from /usr/lib/ruby/site_ruby/1.8/rubygems/co

gvim で R6034 Runtime Error が発生する

症状 gvim 起動時、あるいは 何かしらのプラグインを実行しようとすると「R6034 Runtime Error」が起きる。エラーダイアログを閉じると、問題なく処理は継続できる。 試してはいないが、Rubyでも同様な問題が生じている場合、下記の対処で直るかもしれない。     対処 gvimの マニュフェスト を抽出する 。 > "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe" -inputresource:c:\application \ gvim.exe -out:gvim.manifest Microsoft (R) Manifest Tool version 5.2.3790.2076 Copyright (c) Microsoft Corporation 2005. All rights reserved. python.exeのマニュフェストを抽出する。 >  "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe" -inputresource:c:\Python27\python.exe -out:python.manifest Microsoft (R) Manifest Tool version 5.2.3790.2076 Copyright (c) Microsoft Corporation 2005. All rights reserved. テキストエディタで(2)のpython.manifestを開き赤色の個所を、クリップボードにコピーする。 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">   <trustInfo xmlns="urn:schemas-microsof

config.vm.network :hostonly にすると vagrant up が失敗する

症状 $ vagrant up /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/kernel_v2/config/vm.rb:146:in `[]': can't convert Symbol into Integer (TypeError)         from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/kernel_v2/config/vm.rb:146:in `network'         from /home/test/vagrant_vm/Vagrantfile:24:in `block in <top (required)>'         from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/config/v2/loader.rb:37:in `call'         from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/config/v2/loader.rb:37:in `load'         from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/config/loader.rb:104:in `block (2 levels) in load'         from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/config/loader.rb:98:in `each'         from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/config/loader.rb:98:in `block in load'         from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/va

vagrant up で "The following SSH command responded with a non-zero exit status" が発生

症状  [foo1] Importing base box 'base'... [foo1] Matching MAC address for NAT networking... [foo1] Clearing any previously set forwarded ports... [foo1] Fixed port collision for 22 => 2222. Now on port 2200. [foo1] Forwarding ports... [foo1] -- 22 => 2200 (adapter 1) [foo1] Creating shared folders metadata... [foo1] Clearing any previously set network interfaces... [foo1] Preparing network interfaces based on configuration... [foo1] Booting VM... [foo1] Waiting for VM to boot. This can take a few minutes. [foo1] VM booted and ready for use! [foo1] The guest additions on this VM do not match the install version of VirtualBox! This may cause things such as forwarded ports, shared folders, and more to not work properly. If any of those things fail on this machine, please update the guest additions and repackage the box. Guest Additions Version: 4.2.8 VirtualBox Version: 4.2.10 [foo1] Configuring and enabling network interfaces... The following SSH comma

Cygwin で pip install hogehoge すると Windows 環境のc:\python27\以下にインストールされる。または、しそうになる。

症状     Cygwin で pip install hogehoge すると Windows 環境のc:\python27\以下にインストールされる。または、しそうになる。 対処 Cygwinのターミナルを全て閉じる。 Cygwinのbinフォルダにあるash.exeを起動する。 C:\cygwin\bin\ash.exe ./rebaseall をタイプ しばらく時間がかかるのでコーヒー飲む。 完了したash.exeを閉じる。 もう一回 pip install hogehoge   参考 http://stackoverflow.com/questions/11990350/pip-error-while-installing-package-in-cygwin-python2-7

MS Access 2010 の VBA にて プリンタ枚数 を指定しても反映されない

症状   Private Sub PrintReport(inReportName As String, inPrinter As Printer, inCopiesNumber As Integer) DoCmd.OpenReport inReportName, acViewDesign, , , acHidden Set Application.Printer = inPrinter Application.Printer.Copies = inCopiesNumber DoCmd.OpenReport inReportName DoCmd.Close acReport, inReportName, acSaveNo Set Application.Printer = Nothing End Sub  対処  Private Sub PrintReport(inReportName As String, inPrinter As Printer, inCopiesNumber As Integer) DoCmd.OpenReport inReportName, acViewPreview DoCmd.SelectObject acReport, inReportName, False Set Application.Printer = inPrinter DoCmd.PrintOut , , , , inCopiesNumber DoCmd.Close acReport, inReportName Set Application.Printer = Nothing End Sub 参考 http://support.microsoft.com/kb/2627824

vagrant up error occurred ”Failed to connect to VM!"

症状  $ vagrant up [default] VM already created. Booting if it's not already running... [default] Clearing any previously set forwarded ports... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Booting VM... [default] Waiting for VM to boot. This can take a few minutes. [default] Failed to connect to VM! Failed to connect to VM via SSH. Please verify the VM successfully booted by looking at the VirtualBox GUI. 対処 ダウンロードしてくるboxを x86_64 ではなく、i386 のboxにしてみる。

PostgreSQL ALTER COLUMN TYPE with time zone -> timestamp without time zone

CREATE TABLE public.sampletable(d timestamp(0) with time zone); INSERT into sampletable VALUES('2013-04-18 13:00'); SELECT * FROM sampletable d timestampe(0) with time zone --------------------------- "2013-04-18 13:00:00+09" ALTER TABLE sampletable     ALTER COLUMN d TYPE timestamp(0) without time zone         USING d AT TIME ZONE '-9:00:00'; About '-9:00:00' :    Select -1 * (current_timestamp - current_timestamp AT TIME ZONE 'UTC') As TimeZoneOffSet SELECT * FROM sampletable d timestampe(0) with time zone --------------------------- "2013-04-18 13:00:00"

Windows環境のPythonでAttributeError 「module' object has no attribute 'client'」 が発生

症状 >>> import win32com >>> xlApp = win32com.client.Dispatch("Excel.Application") Traceback (most recent call last):   File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'client' 対処 >>> import win32com .client

knife solo init で起こるエラー uninitialized constant KnifeSolo::Pathname (NameError)

症状  $ knife solo init chef-repo Creating kitchen... Creating knife.rb in kitchen... ERROR: knife encountered an unexpected error This may be a bug in the 'solo init' knife command or plugin Please collect the output of this command with the `-VV` option before filing a bug report. Exception: NameError: uninitialized constant KnifeSolo::Pathname 対処 sudo find / -name knife-solo.rb で見つかったファイルに対して、 require 'pathname ' を追加する。 詳細  $ knife solo init chef-repo -VV Creating kitchen... Creating knife.rb in kitchen... /usr/lib/ruby/gems/1.8/gems/knife-solo-0.3.0.pre3/lib/knife-solo.rb:5:in `resource': uninitialized constant KnifeSolo::Pathname (NameError)         from /usr/lib/ruby/gems/1.8/gems/knife-solo-0.3.0.pre3/lib/chef/knife/solo_init.rb:62:in `create_config'         from /usr/lib/ruby/gems/1.8/gems/knife-solo-0.3.0.pre3/lib/chef/knife/solo_init.rb:28:in `run'         from /usr/lib/ruby/gems/1.8/gems/chef-11.4.0/lib/chef/knife.rb:460

CentOS 6.3 に Virtual-Boxを入れる

手順 1. ダウンロード wget http://download.virtualbox.org/virtualbox/4.2.10/VirtualBox-4.2.10-84104-Linux_amd64.run 2. 実行できるようにパーミッション変更 chmod 777 ./VirtualBox-4.2.10-84104-Linux_amd64.run  3. 実行  sudo ./VirtualBox-4.2.10-84104-Linux_amd64.run 4. OS再起動 reboot reboot エラー  Please install the build and header files for your current Linux kernel. の場合 sudo yum install gcc kernel kernel-devel

CentOS 6.3 で tmux 実行時のエラー

症状 $tmux tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory 対処 $ vi /etc/ld.so.conf.d/libevent-i386.conf /usr/local/lib/ $ ldconfig

CentOS 6.3 に tmux をインストール

ポイント ビルドに必要なライブラリをyum経由でインストールすると、tmuxでビルドエラーが発生する。そのためlibeventの最新を本家HPからソースコードを取得しビルド&インストールする。 ビルドエラー gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\" -DPACKAGE_VERSION=\"1.7\" -DPACKAGE_STRING=\"tmux\ 1.7\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\" -DVERSION=\"1.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CURSES_H=1 -DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_NCURSES_H=1 -DHAVE_PATHS_H=1 -DHAVE_PTY_H=1 -DHAVE_STDINT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_TERM_H=1 -DHAVE_B64_NTOP=1 -DHAVE_FORKPTY=1 -DHAVE_DAEMON=1 -DHAVE_SETENV=1 -DHAVE_ASPRINTF=1 -DHAVE_STRCASESTR=1 -DHAVE_STRSEP=1 -DHAVE_DECL_OPTARG=1 -DHAVE_DECL_OPTIND=1 -DHAVE_DECL_OPTRESET=0 -DHAVE_BZERO=1 -DHAVE_DIRFD=1 -DHAVE_SYSCONF=1 -DHAVE_BSD_TYPES=1

CentOS 6 で ネットワークカードが認識しない時

症状  yum install すると失敗する。 ifconfig コマンドを実行しても”lo”しか見当たらない。”eth0”が見つからない。  ifconfig -a コマンドを実行すると"eth0"が見つかる。 対処 次のコマンドを実行 ifup eth0

CentOS 6.3 で GitLab が使えるまで

ユーザアカウントの追加 useradd git useradd gitlab usermod -G git gitlab chmod g+rx /home/git yum用の追加レポジトリの設定 i386 sudo rpm -Uvh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 必要なパッケージのインストール mysqlのインストール、パスワード、常時起動設定 sudo yum install mysql-server mysql -devel -y sudo /etc/rc.d/init.d/mysqld start mysql -u root -p Enter password:[なにもせずにenter] SET PASSWORD FOR root @ localhost =PASSWORD('3*******'); quit; sudo chkconfig mysqld on redisのインストール、常時起動設定 sudo yum install redis -y sudo /sbin/chkconfig --level 2345 redis on sudo service redis start gitlabユーザーのホームディレクトリにrvmのインストール rubyは1.9.3 sudo su - gitlab source .bash_profile bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) rvm install 1.9.3   gitlab アカウント が自身の サーバ に接続するための鍵ファイルを作成 sudo su - gitlab ssh localhost -p3843   The authenticity

tmuxにてhistoryコマンドを実行すると派手に文字化け

history -c で一旦クリアにすればOK。

Sublime Text2の設定

5 great visual tweaks for Sublime Text より preferences → Settings - User { "caret_style": "phase", "highlight_line": true, "line_padding_bottom": 1, "line_padding_top": 1, "fade_fold_buttons": false, "bold_folder_labels": true }

プライベートGitをVPSに、クライアントはWindowsで。

前提 SSHの設定が完了し、TeraTermなどで接続ができていること。 プライベートなリポジトリの作成 http://d.hatena.ne.jp/Naruhodius/20110415/1302832214 新しく公開用の git リポジトリを作成する場合。 を参考。 Windowsで取得 Git for Windowsをインストール。 Git Bashを起動。 mkdir .ssh cd .ssh vi config Host vps      HostName aaa.bbb.ccc.ddd      IdentityFile C:\Users\foo\Desktop\vps\id_rsa      User baz      Port xxxx  ssh vps # 接続できるか? Enter passphrase for key 'C:\Users\foo\Desktop\vps\id_rsa': #パスワード入力 接続できたら exit でログアウト cd git clone ssh://baz@vps/~baz/git-bare/repo.git