Re: 安裝中文時install.sh Permission denied?(Mac)

看板LaTeX (論文排版)作者 (←這人是超級笨蛋)時間14年前 (2011/04/28 01:07), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/5 (看更多)
※ 引述《ballII (揪團玩舞 5/7(六))》之銘言:

04/27 08:02,
Mac 我不知道怎麼改權限 orz
04/27 08:02

04/27 10:38,
終端機 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

04/28 12:34, , 1F
要下 sudo 命令也要有密碼吧. . .
04/28 12:34, 1F
文章代碼(AID): #1Dk4rHyb (LaTeX)
文章代碼(AID): #1Dk4rHyb (LaTeX)