全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
11924 16
2015-09-22
> install.packages("RODBC")
Package which is only available in source form, and may need
  compilation of C/C++/Fortran: ‘RODBC’
Do you want to attempt to install these from sources?
y/n: y
installing the source package ‘RODBC’

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0 66 1130k   66  751k    0     0   871k      0  0:00:01 --:--:--  0:00:01  871k100 1130k  100 1130k    0     0  1223k      0 --:--:-- --:--:-- --:--:-- 1223k
* installing *source* package ‘RODBC’ ...
** 成功将‘RODBC’程序包解包并MD5和检查
checking for gcc... clang
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking how to run the C preprocessor... clang -E
checking for egrep... 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.2/Resources/library/RODBC’
Warning in install.packages :
  installation of package ‘RODBC’ had non-zero exit status

The downloaded source packages are in
        ‘/private/var/folders/qh/9v7h2nfs59l7yfr6j75m2v180000gs/T/RtmpcixViW/downloaded_packages’

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-12-1 23:23:13
1.通过终端 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安装 ODBC :brew install unixODBC
3.再在Studio 安装 RODBC

可以看看http://stackoverflow.com/questions/31124404/how-to-connect-r-to-mysql-database-using-odbc-on-mac-os-10-10-3-yosemite
网址:http://brew.sh
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-12-1 23:26:07
可以看看这个博主 http://www.cnblogs.com/TankXiao/p/3247113.html
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-12-27 10:49:07
15884579436 发表于 2015-12-1 23:26
可以看看这个博主 http://www.cnblogs.com/TankXiao/p/3247113.html
后来把R全部更新了就解决了,anyway,多谢~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-2-25 23:12:19
水舞者 发表于 2015-12-27 10:49
后来把R全部更新了就解决了,anyway,多谢~
你说的r全部更新?没太懂,想问一下怎么解决的,我也遇到这个问题了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-3-4 10:47:46
am09 发表于 2016-2-25 23:12
你说的r全部更新?没太懂,想问一下怎么解决的,我也遇到这个问题了
具体我也不大记得了,好像后来就是重新装了一个最新版本的R
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群