Re: 安裝中文時install.sh Permission denied?(Mac)
※ 引述《uranusjr (←這人是超級笨蛋)》之銘言:
: ※ 引述《ballII (揪團玩舞 5/7(六))》之銘言:
: → lovinlover:Mac 我不知道怎麼改權限 orz 04/27 08:02
: → 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
: 所以, 找找看這個檔是不是真的存在
不在。
(可否順便請教一下:如果要找的目標在未知的隱藏folder裡,
在放大鏡旁輸入好像都找不到。請問該怎麼找呢?)
: : line 1: #!/usr/bin/env: No such file or directory
: $ which env
: 看一下你有沒有 env 這個指令
: 這個位置是對的, 應該要找到才對
有這指令。
當初為了保持權限在win下改,應改是編碼有問題所以找不到。
現在在mac下改,並用上述第 2) 方法,可以跑。找得到 env。
但以下仍然 not writable.
: : 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
$ sudo ./install.sh
Don't use root to do install, abort!
哇?
: : 不知mac雪豹使用者是怎麼成功安裝上中文的?能否推薦一下方法流程?謝謝。
: XeTeX + xeCJK rocks =p
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.122.161.110
※ 編輯: ballII 來自: 140.122.161.110 (04/28 15:41)
討論串 (同標題文章)
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章