|
中文版 Location: Homepage >> Xianghui Xue : CV - Publications - Blog |
Personal Note |
MAC下常用软件安装 | ||
|
|
1 idl7.1 Contents Top | 1 click the install file 2 start idl in command line: edit .profile add the command " . /Applications/itt/idl71/bin/idl_setup.bash" to .profile source .profile | |
|
2 利用蓝牙上网 Contents Top | 教程和脚本都在附件压缩包中 | |
![]() | ||
|
3 安装网络打印机 Contents Top | 1 . 从 Apple 菜单中选取系统偏好设置。 2. 从显示菜单中选取打印&传真。 3. 点按 + 按钮添加打印机。 4. 按住 Control 键并点按“默认”图标(或工具栏上的任意其他图标),然后从出现的关联菜单中选取“自定工具栏”。将“高级”(齿轮)图标拖到工具栏。点按“完成”。 5. 点按添加到工具栏上的“高级”图标。从“类型”弹出式菜单中选取“Windows ”。 6. 在“URL”栏中,按下列格式之一输入打印机的地址: smb://workgroup/server/sharename smb://server/sharename 注:“workgroup”是共享打印机的电脑所属 Windows 工作组的名称。“server”是共享打印机的电脑名称(或其 IP 地址)。“sharename”是共享的 Windows 打印机的共享名称。如果共享名称中包含空格,请使用“%20”(不包括引号)进行替换。 提示:当指定电脑的 IP 地址(如当打印机位于不同的子网中时)或您的 Mac 属于相同的 Windows (SMB) 工作组时无需“workgroup”。 7. 在“名称”栏中,输入您要在 Mac OS X 中使用的此打印机的名称。 8. 从“打印使用”弹出式菜单中选取恰当的 PPD 或打印机驱动程序。 9. 点按“添加”。 | |
|
4 安装macPort Contents Top | 需要先安装xcode,再机器附带的光盘中,比较大 2G。 然后下载macport的安装包,直接运行安装。 需要注意的是,安装结束后运行时候提示 Warning: /opt/local/etc/macports/sources.conf specifies invalid source ' rsync://rsync.macports.org/release/ports/ [default]', ignored. Warning: No default port source specified in /opt/local/etc/macports/sources.conf, using last source as default can't read "sources": no such variable while executing "lindex $sources end" (procedure "mportinit" line 167) invoked from within "mportinit ui_options global_options global_variations" Error: /opt/local/bin/port: Failed to initialize MacPorts, can't read "sources": no such variable 需要修改sources.conf,将rsync://rsync.macports.org/release/ports/ [default]前面的空格删除,即可。 常用命令: 更新 sudo port -v selfupdate 安装软件 sudo port -d install *** 卸载 sudo port -d uninstall *** | |
|
5 安装gfortran Contents Top | 参考 http://hpc.sourceforge.net/ 下载gfortran的压缩包,解压后,把全部文件拷贝到  /usr/local/ 即可。 | |
|
6 Texworks加入拼写检查 Contents Top | TeXworks本身是不带拼写检查的字典的,可以先到这里下载en_US (english US)字典 http://wiki.services.openoffice.org/wiki/Dictionaries#English_.28AU.2CCA.2CGB.2CNZ.2CUS.2CZA.29 解压后,把.dic和.aff 两个文件拷贝到User\用户名\Libary\TeXworks\dictionaries。重新启动texworks后在editor--->spelling里选择刚装的字典。就可以进行拼写检查。 | |
|
7 mac下的注册码检索软件 Contents Top | Serial Box,可以自动更新数据库,获得新的注册码信息。 KCNcrew Pack,比上面一个信息略少,但可以互为配合用。 | |
|
8 mac终端的色彩配置 Contents Top | 习惯使用黑色背景和绿色字体,可以选择Homebrew这个终端色彩配置。 然后新建.bash_profile脚本,加入以下文字,可以对文件、目录、链接等不同的信息给出不同的颜色区分。 # for color export CLICOLOR=1 # \h:\W \u\$ export PS1='\[\033[01;33m\]\u@\h\[\033[01;31m\] \W\$\[\033[00m\] ' # grep alias grep='grep --color=always' | |
|
9 NCview 2.0 安装 Contents Top | (一) ncview 1.9 安装 由于没有安装HDF5的支持,只能安装1.9版本。 在安装过程中,先是找不到gcc编译,原来是由于lion升级后导致xcode出错的原因,重新安装了xcode4,这次可以找到gcc。 接着提示 -lXaw 找不到库,检索了一下,这个需要xorg的支持,利用macport安装 xorg-libXaw,这次轮到macport出错,总是shell有问题。原因也是系统升级10.7之后造成的,下载新的macport2.0版本,重新安装后,prot可以正常运行了。 但是在安装过程中,有出现错误 Error: Activating perl5 @5.12.3_1 failed: Image error: /opt/local/bin/a2p is being used by the active perl5.8 port. 在macport的论坛上(https://trac.macports.org/wiki/ProblemHotlist)找到解决方案 port upgrade installed and \( perl5.8 perl5.10 perl5.12 \) 在接下来提示netcdf有问题,无法编译。于是安装1.9放弃。 (二)ncview 2.0 安装 下载新版本的ncview,提示需要安装netcdf4.1.2 和 hdf5 1.8.4 的进行支持。 下载HDF5 1.8.4,编译HDF5-1.8.4 版本 (安装目录:/usr/local/hdf/) 下载Netcdf 4.1.2,并启用netcdf和hdf支持 ./configure --enable-netcdf-4 --with-hdf5=/usr/local/hdf5 --prefix=/usr/local 最后安装ncview,成功。 在ncview主页,提示如果在64位的mac上出现如下错误,需要指定X11的lib,具体描述如下: Trying to get ncview to run on a 64-bit Linux machine, and getting link errors about "incompatible libraries skipped"? Try: ./configure --x-libraries=/usr/X11R6/lib64 (or otherwise specifying the location of the 64-bit X libraries on your machine) | |
|
10 安装sshfs Contents Top | 在mac下安装sshfs,首先要安装macfuse,在32位系统上,下载可以到http://code.google.com/p/macfuse/source/browse/#svn%2Freleases。但如果mac是64位的,在运行时会提示“dyld: Library not loaded: /usr/local/lib/libfuse.2.dylib”, 解决方法下载 http://www.tuxera.com/mac/macfuse-core-10.5-2.1.9.dmg (ref http://macfuse.975588.n3.nabble.com/Install-Unistall-issues-td2869852.html),然后重新安装。 然后下载对应的sshfs编译文件(http://code.google.com/p/macfuse/wiki/MACFUSE_FS_SSHFS),可以解压缩后copy到/usr/local/bin,注意如果.profile文件没有添加你sshfs的路径,需要修改一下:export PATH=Where/your/sshfs/:$PATH。 执行挂载: $ mkdir /some/mount/point # or use one that already exists $ sshfs user@host:/some/directory /some/mount/point -oauto_cache,reconnect,volname=<volname> | |
|
11 安装gnuplot Contents Top | 自己编译安装总是缺少各种库的支持,查看了一下macport,居然有最新版本,于是任务简化成: port install gnuplot 一个简单的使用帮助可以查看:http://wellya.net/read-htm-tid-11911-page-1-fpage-1.html | |
|
12 安装NCL Contents Top | macport也可以找到最新的ncarg6.0版本,但是安装的时候提示无法fetch到ncarg6.0,不过好在ncl需要依赖的其他软件已经安装好。直接到ncl下载预编译的mac版本,然后利用unbuntu下软件安装的方法,即可。 | |
|
13 texlive2010+xelatex加入中文支持 Contents Top | 1. 安装字体库 下载simsun.ttf, simfang.ttf, simhei.ttf, simkai.ttf 等windows字库,然后在mac“字体册”添加字库,在字体册“验证字库”时,可以显示其对应的名称,比如simkai对应的KaiTi_GB2312, simfang对应的是FangSong_GB2312。 2. 安装mactex 3. 修改/usr/local/texlive/2010/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def ctex-xecjk-winfonts.def 原始文件可能如下: % ctex-xecjk-winfonts.def: Windows 的 xeCJK 字体设置,默认为六种中易字体 % vim:ft=tex /setCJKmainfont[BoldFont={SimHei},ItalicFont={[simkai.ttf]}] {SimSun} /setCJKsansfont{SimHei} /setCJKmonofont{[simfang.ttf]} /setCJKfamilyfont{zhsong}{SimSun} /setCJKfamilyfont{zhhei}{SimHei} /setCJKfamilyfont{zhkai}{[simkai.ttf]} /setCJKfamilyfont{zhfs}{[simfang.ttf]} 。。。。。。。 /endinput 将simkai.ttf修改成KaiTi_GB2312, simfang.ttf修改成FangSong_GB2312,其他的基本不变(如果编译遇到错误,检查相应的名称,做相应的修改。)。同时,还应将simkai.tff, simfang.ttf包围的[]去掉,即,变成以下形式: % ctex-xecjk-winfonts.def: Windows 的 xeCJK 字体设置,默认为六种中易字体 % vim:ft=tex /setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi_GB2312}] {SimSun} /setCJKsansfont{SimHei} /setCJKmonofont{FangSong_GB2312} /setCJKfamilyfont{zhsong}{SimSun} /setCJKfamilyfont{zhhei}{SimHei} /setCJKfamilyfont{zhkai}{KaiTi_GB2312} /setCJKfamilyfont{zhfs}{FangSong_GB2312} /setCJKfamilyfont{zhli}{LiSu} /setCJKfamilyfont{zhyou}{YouYuan} | |
|
Locations | Statistics | FAQ |
Best view under the 1024x768 resolution and with the normal size of fonts. Designed & developed by Yuming Wang, run for 6667 days since December 15, 2006, and last upgraded on May 28th, 2009. Powered by Apache + PHP coded cOpfOs 3.11.1 last upgraded on February 22nd, 2010. Copyright © 2006, all rights reserved. |