一般 MacOSX 軟體有 .app 和 .pkg 兩種, 在使用指令安裝, 就不一樣. .app 可直接複製 /Applications, 之後即可使用. 而 .pkg 需要透過 installer 安裝. 而這兩種檔案皆會先包成 dmg 方式以便傳輸下載.
mount dmg:
osx:~ $ hdiutil attach -noverify foo.dmg # 掛載 dmg
osx:~ $ ls /Volumes/foo
wsunccake 發表在 痞客邦 留言(0) 人氣(413)
因為 Mac 的 Mac OS X 升級到 10.9 之後, 原本給 Cisco Packet Tracer for MAC 就沒辦法使用.
在網路上查到, 原來是 Mac OS X 在 10.7 之後, 就差很多. 目前看的方式, 使用 Wineskin(Mac下的Windows模擬器)配合Cisco Packet Tracer(這是for windows)就可以使用了
ref:
how to Packet Tracer 6.0.1 in Mac
Wineskin 載點
Cisco Packet Tracer for Windows 載點
wsunccake 發表在 痞客邦 留言(0) 人氣(6,894)
目前MacOSX內附Perl有5.10和5.12,Python有2.5、2.6和2.7
MacOS系統預設設定
#設定Perl預設版本
MacOS: ~ # defaults write com.apple.versioner.perl Version 5.12
#使用32-bit
MacOS: ~ # defaults write com.apple.versioner.perl Prefer-32-Bit -bool yes
#設定Python預設版本
MacOS:~ # defaults write com.apple.versioner.python Version 2.7
#使用32-bit
MacOS:~ # defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
wsunccake 發表在 痞客邦 留言(0) 人氣(48)
1. 先到App Store安裝Xcode (free)
2. 再到Intel網站下載安裝Intel Compiler
3. 使用Intel Compiler(以C compiler為例)
# 測試程式
MacOS:~ $ cat test.c
#include
void main() {
printf("Hello");
}
# 載入Intel Compiler環境
MacOS:~ $ source /opt/intel/Compiler/11.1/084/bin/iccvars.sh intel64
# 編譯程式產生執行檔,設定使用到library path,用-L參數設定
MacOS:~ $ icc -o test -L/Developer/SDKs/MacOSX10.6.sdk/usr/lib test.c
# 執行程式
MacOS:~ # ./test
wsunccake 發表在 痞客邦 留言(0) 人氣(24)