相关疑难解决方法(0)

使用RVM安装Ruby 1.9.3但命令行不显示ruby -v

这是控制台输出:

sergio@sergio-VirtualBox:~$ rvm list

rvm rubies

   ruby-1.9.3 [ i386 ]

sergio@sergio-VirtualBox:~$ rvm use 1.9.3
Using /usr/share/ruby-rvm/gems/ruby-1.9.3

sergio@sergio-VirtualBox:~$ ruby -v
The program 'ruby' can be found in the following packages:
 * ruby1.8
 * ruby1.9.1
Try: sudo apt-get install <selected package>
Run Code Online (Sandbox Code Playgroud)

发生什么了?我需要重新启动机器吗?或者它应该立即起作用?我正在使用Ubuntu 11.10,任何帮助表示赞赏.

ruby ubuntu rvm

172
推荐指数
2
解决办法
10万
查看次数

RVM安装失败

我按照RVM主页上的说明进行操作(https://rvm.beginrescueend.com/rvm/install/)

我键入以下内容:

sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
Run Code Online (Sandbox Code Playgroud)

脚本执行,似乎没有给出任何错误.

没有sudo的同样错误:

Warning: Failed to create the file 
Warning: /usr/share/ruby-rvm/archives/wayneeseguin-rvm-stable.tgz: Permission 
Warning: denied
  0  792k    0  3908    0     0   2257      0  0:05:59  0:00:01  0:05:58  2257
curl: (23) Failed writing body (0 != 3908)

Could not download 'https://github.com/wayneeseguin/rvm/tarball/stable'.
  curl returned status '23'.
Run Code Online (Sandbox Code Playgroud)

我也把它放在我的〜/ .bashrc中

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
Run Code Online (Sandbox Code Playgroud)

我得到的是:

~$ type rvm | head -1
bash: type: rvm: not found

~$ source "/usr/local/rvm/scripts/rvm"
bash: /usr/local/rvm/scripts/rvm: No …
Run Code Online (Sandbox Code Playgroud)

ruby rvm

18
推荐指数
4
解决办法
2万
查看次数

RVM拒绝安装 - 卷曲SSL证书验证失败

我正在进行相对干净的OS X安装.我有Xcode,但删除了它.

当我输入时rvm install 1.9.3,我得到:

max-macbook:~ max$ rvm install 1.9.3 Fetching yaml-0.1.4.tar.gz to /Users/max/.rvm/archives   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed   0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--     0 curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"  of Certificate Authority …
Run Code Online (Sandbox Code Playgroud)

ruby rvm

17
推荐指数
2
解决办法
9691
查看次数

R中的twitteR SSL证书失败

我知道有人再问过类似的问题.但是,我已经尝试了我在这里和谷歌上找到的所有东西,似乎没有什么对我有用.

我的代码如下:

reqURL <- "http://api.twitter.com/oauth/request_token"
accessURL <- "http://api.twitter.com/oauth/access_token"
authURL <- "http://api.twitter.com/oauth/authorize"
consumerKey <- "xxxxxxxxxxx"
consumerSecret <- "xxxxxxxxxxxxxxxxxxx"
twitCred <- OAuthFactory$new(consumerKey=consumerKey,
                         consumerSecret=consumerSecret,
                         requestURL=reqURL,
                         accessURL=accessURL,
                         authURL=authURL)
twitCred$handshake(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))
registerTwitterOAuth(twitCred)
Run Code Online (Sandbox Code Playgroud)

我得到: [1] TRUE

但如果我试试这个: tweets = searchTwitter('blabla', n=1500)

我收到以下错误: [1] "SSL certificate problem, verify that the CA cert is OK. Details:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed" Error in twInterfaceObj$doAPICall(cmd, params, "GET", ...) : Error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

以下是我的PC上的软件包和版本: …

twitter ssl r oauth twitter-oauth

17
推荐指数
2
解决办法
1万
查看次数

通过curl命令行发送到github(Windows)

我问了一个相关的问题,并意识到我没有问正确的问题(即,这不是关于git).

问题是如何在没有首先使用R在云中创建项目的情况下将项目推送到github.目前,您可以使用此问题中的信息从RStudio中的git命令行执行此操作.

现在我正在尝试从Windows机器中将其转换为R代码(Linux很简单).我通过R system调用从命令行使用curl进入第一步.我将展示我拥有的内容然后显示错误消息(感谢SimonO101让我这么做.).根据他在下面的评论,我已经进行了大量编辑以反映问题:

R代码:

repo <- "New"
user <- "trinker"
password <- "password"

url <- "http://curl.askapache.com/download/curl-7.23.1-win64-ssl-sspi.zip"
tmp <- tempfile( fileext = ".zip" )
download.file(url,tmp)
unzip(tmp, exdir = tempdir())

system(paste0(tempdir(), "/curl http://curl.haxx.se/ca/cacert.pem -o " , 
    tempdir() , "/curl-ca-bundle.crt"))

cmd1 <- paste0(tempdir(), "/curl -u '", user, ":", password, 
    "' https://api.github.com/user/repos -d '{\"name\":\"", repo, "\"}'")

system(cmd1)

cmd2 <- paste0(tempdir(), "/curl -k -u '", user, ":", password, 
    "' https://api.github.com/user/repos -d '{\"name\":\"", repo, "\"}'")

system(cmd2)
Run Code Online (Sandbox Code Playgroud)

错误消息(两种方法都相同):

> …
Run Code Online (Sandbox Code Playgroud)

windows curl r github

5
推荐指数
1
解决办法
925
查看次数

无论如何要更改 php curl 选项、脚本会话或全局的默认值?

我正在使用一个框架,该框架将 curl 处理封装在它的类层次结构的深处。基本上我想改变它处理 curl 的方式,而不修补文件。如果我可以在外部全局更改 curl 默认值,那可能是理想的。在 php.ini 或类似的方式。

有什么办法可以做到这一点吗?

php curl global options

4
推荐指数
1
解决办法
8331
查看次数

标签 统计

ruby ×3

rvm ×3

curl ×2

r ×2

github ×1

global ×1

oauth ×1

options ×1

php ×1

ssl ×1

twitter ×1

twitter-oauth ×1

ubuntu ×1

windows ×1