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

看板LaTeX (論文排版)作者 (揪團玩舞 5/7(六))時間14年前 (2011/04/26 23:40), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串1/5 (看更多)
http://riemann.math.nccu.edu.tw/forum/viewtopic.php?f=5&t=797 我依上述指示安裝字型時, 忘了改 install.sh 內容就執行了 ./install.sh 視窗跑了一下,好像安裝了什麼,但中文字仍無法使用。 後來修改install.sh後重新執行 ./install.sh 或 ./uninstall.sh 卻出現 Permission denied 訊息,不准我執行安裝。 請問目前應如何處理?謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.122.161.110 ※ 編輯: ballII 來自: 140.122.161.110 (04/26 23:41)

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

04/27 10:38, , 2F
終端機 sudo ./install.sh
04/27 10:38, 2F
sudo: ./install.sh: command not found 用TextEdit更改install.sh內容後權限都會都會被改。 後來我是在虛擬win下用記事本改install.sh,放回mac可執行, 但TeXShop仍讀不到中文,第一錯誤訊息是 File 'CJKutf3.sty' not found 跟install.sh未改時的錯誤訊息是一樣的。 安裝時的訊息則是: line 1: #!/usr/bin/env: No such file or directory 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. (這種中文安裝方法我在powerbook上跑過,是成功的。 為什麼現在權限上好像問題多多?應該先統統改掉嗎?) 不知mac雪豹使用者是怎麼成功安裝上中文的?能否推薦一下方法流程?謝謝。 ※ 編輯: ballII 來自: 114.45.237.53 (04/28 00:37)

04/28 01:01, , 3F
sudo sh ./install.sh 你的 install.sh 沒有 x 權限...
04/28 01:01, 3F
文章代碼(AID): #1DjkTf2b (LaTeX)
文章代碼(AID): #1DjkTf2b (LaTeX)