作者uranusjr (←这人是超级笨蛋)
看板LaTeX
标题Re: 安装中文时install.sh Permission denied?(Mac)
时间Thu Apr 28 01:07:26 2011
※ 引述《ballII (揪团玩舞 5/7(六))》之铭言:
1F:→ lovinlover:Mac 我不知道怎麽改权限 orz 04/27 08:02
2F:→ uranusjr:终端机 sudo ./install.sh 04/27 10:38
: sudo: ./install.sh: command not found
Try:
1) $ sh install.sh
看来你的 install.sh 没有 execute 权限, 所以不能执行
这个方法 exeplicitly 呼叫 sh 来执行这个 script
2) $ sudo chmod +x install.sh
$ ./install.sh
不然就是把执行权限加上去, 然後再执行...
以上两个方法至少第二个不太可能失败, 一定可以跑
(只是跑了之後会怎样就不知道了)
如果还遇到问题, 就先试着加上 sudo 试试看
: 但TeXShop仍读不到中文,第一错误讯息是 File 'CJKutf3.sty' not found
所以, 找找看这个档是不是真的存在
: line 1: #!/usr/bin/env: No such file or directory
$ which env
看一下你有没有 env 这个指令
这个位置是对的, 应该要找到才对
: texhash: /usr/local/texlive/2010basic/texmf: directory not writable. Skipping...
: texhash: /usr/local/texlive/2010basic/texmf-config: directory not writable. Skipping...
: texhash: /usr/local/texlive/2010basic/texmf-dist: directory not writable. Skipping...
: texhash: /usr/local/texlive/2010basic/texmf-local: directory not writable. Skipping...
: texhash: /usr/local/texlive/2010basic/texmf-var: directory not writable. Skipping...
: texhash: Done.
都一样, 你没有写入权限
执行 install.sh 时请加上 sudo
: 不知mac雪豹使用者是怎麽成功安装上中文的?能否推荐一下方法流程?谢谢。
XeTeX + xeCJK rocks =p
--
╱ ̄ ̄ ̄╲
▏
◢█◣ ▏
︻█︻█ ▏
成龙表示: 是喔...
′/ ‵ ▏
╰╯ █╱
ψQSWEET ◥︶█◤
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.32.81.146
3F:推 jsb:要下 sudo 命令也要有密码吧. . . 04/28 12:34