2014年3月23日 星期日

RubyConf Taiwan 2014

http://rubyconf.tw
http://www.inside.com.tw/2014/03/17/rubyconf-2014

command line open powershell

start powershell

ref:
http://stackoverflow.com/questions/8670001/how-to-launch-powershell-not-a-script-from-command-line

Install Windows Updates on Windows Server 2012 Server Core

sconfig

ref:
http://blog.zwiegnet.com/windows-server/install-windows-updates-on-server-2012-core/

Disable firewall on Windows Server 2012 Server Core

C:\Users\Administrator>netsh advfirewall set allprofiles state off
Ok.

Enable Remote Desktop on Windows Server 2012 Server Core

C:\Users\Administrator>Cscript %windir%\system32\SCRegEdit.wsf /ar 0
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

OR
scconfig -> 7

Registry has been updated.

ref:
http://social.technet.microsoft.com/Forums/windowsserver/en-US/8ca7d997-aeff-4253-beab-4ac0cdcc30c6/how-do-you-turn-on-rdp-in-server-2012-core?forum=winserver8setup

Setup Hyper-V on Windows Server 2012 Server Core

http://technet.microsoft.com/en-us/library/ee441260(v=ws.10).aspx

Dism /online /enable-feature /featurename:Microsoft-Hyper-V

Ref
http://social.technet.microsoft.com/Forums/windowsserver/en-US/17537d33-f0c7-402d-b1e0-e3823aadfc51/server-core-2012-r2-ocsetup-issue?forum=winserversetup
ocsetup  is already deprecated.

ErrMsg:
Windows cannot find 'ocsetup'. Makesure you typed the name correctly, and then try again.

ENV:
Windows Server 2012 R2 Standard Server Core

2013年11月4日 星期一

ERROR: Failed to build gem native extension. /usr/local/Cellar/ruby/2.0.0-p247/bin/ruby extconf.rb

依ihower的Ruby on Rails 實戰聖經
最後步驟是:gem install sqlite3和gem install rails
在OSX 10.8.5安裝時出現這錯誤訊息
看到stackoverflow有人說XCode 4以後要自己裝Command Line tools
才解決問題,想說在之前在Ubuntu裝都好好的@.@
打開XCode後到Preferences -> Downloads -> Components
下載並安裝
Command Line tools

錯誤訊息:

ERROR: Failed to build gem native extension.
    /usr/local/Cellar/ruby/2.0.0-p247/bin/ruby extconf.rb

checking for sqlite3.h... *** 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.

REF:http://stackoverflow.com/questions/8389301/os-x-rails-failed-to-build-gem-native-extension

P.S.
OSX 10.9之後可以使用"xcode-select --install”,不用透過GUI慢慢選
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html