各位大神我刚刚学R安装RODBC包的时候提示这个问题,有没有能帮忙解决一下的
install.packages('RODBC')
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘RODBC’
你想从源代码尝试安装这些
y/n: y
安装源码包‘RODBC’
试开URL’
https://mirrors.tuna.tsinghua.ed ... RODBC_1.3-14.tar.gz
Content type 'application/octet-stream' length 1163799 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
* installing *source* package ‘RODBC’ ...
** 成功将‘RODBC’程序包解包并MD5和检查
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sql.h usability... no
checking sql.h presence... no
checking for sql.h... no
checking sqlext.h usability... no
checking sqlext.h presence... no
checking for sqlext.h... no
configure: error: "ODBC headers sql.h and sqlext.h not found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/RODBC’
下载的程序包在
        ‘/private/var/folders/5l/r45bkp596c99qgn3g2txsp7m0000gn/T/RtmpoPOx2w/downloaded_packages’里
Warning message:
In install.packages("RODBC") : 安装程序包‘RODBC’时退出狀態的值不是0