ฉันพยายามติดตั้ง AucTeX 1.86 บน Emacs binary (เวอร์ชั่น 24.0.50) จาก emacsformacosx.com ในการลองครั้งแรก./configureผลลัพธ์:
configure: error: Cannot find the texmf directory!
Please use --with-texmf-dir=dir to specify where the preview tex files goconfigure: error: ./configure failed for preview
ฉันเพิ่ม--with-texmf-dir=/usr/local/texlive/texmf-localที่./configureตอบอย่างมีความสุขด้วยความยินดีหลาย ฉันรวบรวมด้วยmakeและsudo make installไม่มีความผิดพลาด
ฉันเปิดไฟล์. tex บน Emacs และ AucTeX ไม่โหลด ฉันออก(load auctex.el nil t t)Cj ในบัฟเฟอร์ * scratch * และเอาต์พุต Emacs:
Debugger entered--Lisp error:(file-error "Cannot open load file" "auctex.el")
มีบางอย่างเกิดขึ้น ฉันคิดว่า Emacs ไม่สามารถหาไฟล์ได้ดังนั้นจะต้องไม่ได้ติดตั้งตามที่ควร ฉันติดตามไฟล์ AucTeX ส่วนใหญ่ไป/usr/share/emacs/site-lispที่ที่ Emacs 22.1 อาศัยอยู่
ฉันมีสองตัวเลือกที่นี่: 1. บอก Emacs ว่าจะหา AucTeX ได้ที่ไหน (ซึ่งฉันไม่รู้ว่าจะทำอย่างไร); 2. คอมไพล์ AucTeX อีกครั้งพร้อมตัวเลือกการกำหนดค่าเพิ่มเติม (ซึ่งดูเหมือนตรงไปตรงมามากขึ้น)
ฉันเลือกคอมไพล์อีกครั้งหลังจากลบไฟล์ AucTeX ทั้งหมดจากการติดตั้งก่อนหน้า ครั้งนี้ฉันกำหนดค่าแหล่งที่มาบอกว่าควรใช้ Emacs ที่ไหนด้วย:
./configure -with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs --with-lisp-dir=/Applications/Emacs.app/Contents/Resources/site-lisp --with-texmf-dir=/usr/local/texlive/texmf-local
คราวนี้มันบ่น:
`configure: error: Cannot locate lisp directory,`
`use --with-lispdir, --datadir, or possibly --prefix to rectify this`
แม้ว่าฉันจะรวม--with-lisp-dir=dirตัวเลือก ถ้าฉันเอามันออกมาก็ยังคงบ่นว่าไม่สามารถหาไดเรกทอรีเสียงกระเพื่อม ดูเหมือนว่า AucTeX จะไม่ชอบ Emacs.app ในโฟลเดอร์ Applications
คำถามของฉันคือฉันจะให้มันทำงานอย่างไร