楼主: 水舞者
11735 16

[问答] MAC的Rstudio安装RODBC包总是报错? [推广有奖]

  • 0关注
  • 2粉丝

本科生

48%

还不是VIP/贵宾

-

威望
0
论坛币
42 个
通用积分
0
学术水平
0 点
热心指数
1 点
信用等级
2 点
经验
1489 点
帖子
67
精华
0
在线时间
62 小时
注册时间
2015-6-7
最后登录
2021-7-22

楼主
水舞者 发表于 2015-9-22 09:19:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
> 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’

二维码

扫码加我 拉你入群

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

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

关键词:RStudio RODBC包 Studio RODBC dio available package source

沙发
15884579436 发表于 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
已有 1 人评分论坛币 学术水平 热心指数 收起 理由
admin_kefu + 30 + 2 + 2 热心帮助其他会员

总评分: 论坛币 + 30  学术水平 + 2  热心指数 + 2   查看全部评分

藤椅
15884579436 发表于 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,多谢~

报纸
am09 发表于 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

7
水寒侨 发表于 2016-5-22 15:56:56
如下方法可解决,已经测试过:
1.ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2.brew update && brew install unixODBC
已有 1 人评分论坛币 学术水平 热心指数 收起 理由
admin_kefu + 20 + 2 + 2 热心帮助其他会员

总评分: 论坛币 + 20  学术水平 + 2  热心指数 + 2   查看全部评分

8
了不起的阿山 发表于 2016-7-13 15:43:40
15884579436 发表于 2015-12-1 23:23
1.通过终端 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ...
借助您的回答成功安装啦!折腾好久 总算成功了 感谢~~

9
15884579436 发表于 2016-7-18 15:40:20
了不起的阿山 发表于 2016-7-13 15:43
借助您的回答成功安装啦!折腾好久 总算成功了 感谢~~
我也是现学现用的

10
wucutin 发表于 2016-8-10 16:12:32
15884579436 发表于 2015-12-1 23:23
1.通过终端 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ...
十分感谢!!

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 07:13