1 /bin/bash: jar: command not found
解決辦法:
cd /usr/bin
必須先進入/usr/bin,下同
sudo ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/jar
我的jdk是安裝在/usr/lib/jvm/jdk1.6.0_30/目錄下的
如果提示javah:commond not found,於是照葫蘆畫瓢,輸入命令
cd /usr/bin
ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/javah
在編譯 make-3.82 的時候出現如下錯誤提示glob/glob.c:xxx: undefined reference to `__alloca'`
修改 /glob/glob.c
// #if !defined __alloca && !defined __GNU_LIBRARY__
# ifdef __GNUC__
# undef alloca
# define alloca(n) __builtin_alloca (n)
# else /* Not GCC. */
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# else /* Not HAVE_ALLOCA_H. */
# ifndef _AIX
# ifdef WINDOWS32
# include <malloc.h>
# else
extern char *alloca ();
# endif /* WINDOWS32 */
# endif /* Not _AIX. */
# endif /* sparc or HAVE_ALLOCA_H. */
# endif /* GCC. */
# define __alloca alloca
// #endif
保存後編譯通過
這個錯誤是glibc2.7引起的