精華區beta FreeBSD 關於我們 聯絡資訊
※ 引述《[email protected] (...)》之銘言: : ===> Building for expect-5.38.0_1 : rm -f libexpect538.so.1 : ld -shared -x -o libexpect538.so.1 shared/exp_command.o shared/expect.o shared/ : pty_termios.o shared/exp_inter.o shared/exp_regexp.o shared/exp_tty.o shared/ : exp_log.o shared/exp_main_sub.o shared/exp_pty.o shared/exp_trap.o shared/exp : _console.o shared/exp_strf.o shared/exp_glob.o shared/exp_win.o shared/exp_cli : b.o shared/exp_closetcl.o shared/exp_memmove.o shared/exp_tty_comm.o shared/e : xp_select.o shared/exp_event.o shared/exp_chan.o shared/Dbg.o -Wl,-rpath,/usr/local/lib -L/usr/ports/lang/tcl83/work/tcl8.3.5/unix -ltcl83 -lm -lc : /usr/libexec/elf/ld: unrecognized option '-Wl,-rpath,/usr/local/lib' : /usr/libexec/elf/ld: use the --help option for usage information : *** Error code 1 : Stop in /usr/ports/lang/expect/work/expect-5.38. : *** Error code 1 : Stop in /usr/ports/lang/expect. : 系統是 FreeBSD 4.8 stable,make install 前做過 make update : 請問該如何解決? : 謝謝! # cd /usr/ports/lang/expect # make configure # vi work/expect-5.38/Makefile 找到底下這一行 ld -shared -x -o $(EXP_SHARED_LIB_FILE) $(SHARED_OFILES) -Wl,-rpath,${LI B_RUNTIME_DIR} -L/usr/local/lib -ltcl83${TCL_DBGX} -lm -lc 改成 ld -shared -x -o $(EXP_SHARED_LIB_FILE) $(SHARED_OFILES) -rpath ${LIB_RU NTIME_DIR} -L/usr/local/lib -ltcl83${TCL_DBGX} -lm -lc # make install clean Good Luck ~~ -- ※ Origin: 銘傳資工神話站 <bbs.csie.mcu.edu.tw> ※ From : hpc113.ty.mcu.edu.tw