Re: 安裝中文時install.sh Permission denied?(Mac)
※ 引述《ballII (揪團玩舞 5/7(六))》之銘言:
→
04/27 08:02,
04/27 08:02
→
04/27 10:38,
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
推
04/28 12:34, , 1F
04/28 12:34, 1F
討論串 (同標題文章)
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章