比如说在 doorkeeper 中,access token 是产生算法是什么呢?授权服务器又是如何验证 access token 的合法性的呢?
您好,能帮我解决下这个问题么?http://ruby-china.org/topics/15396
好棒啊!我最近也要实现一个认证和授权系统,如果遇到问题可以咨询你么?
问题已经完全解决了。非常感谢以上各位的帮助!很开心。
ok. 可以了。在 Fedora14 下面的设置过程为:编辑——配置文件首选项——标题和命令——勾选“以登录 Shell 方式运行命令”
可是,ruby -v 之后,还是只能看到 ruby 1.8.7 的版本。 我使用:rvm use 1.9.2 想设置使用 ruby 1.9.2 可是,出现下述问题: [user@cloud-privacy ccache]$ rvm use 1.9.2
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use /bin/bash --login
as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
看状况,目前 rvm install 1.9.2 已经安装好了。 [user@cloud-privacy ccache]$ rvm install 1.9.2 Searching for binary rubies, this might take some time. No binary rubies available for: fedora/14/i386/ruby-1.9.2-p320. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for fedora, might require sudo password. Installing Ruby from source to: /home/user/.rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)... ruby-1.9.2-p320 - #downloading ruby-1.9.2-p320, this may take a while depending on your connection... ruby-1.9.2-p320 - #extracted to /home/user/.rvm/src/ruby-1.9.2-p320 (already extracted) ruby-1.9.2-p320 - #configuring................................................................................................................................................................................................................................................................................................................................................................................................................................ ruby-1.9.2-p320 - #compiling............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ ruby-1.9.2-p320 - #installing .................... Retrieving rubygems-1.8.25 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 371k 100 371k 0 0 29039 0 0:00:13 0:00:13 --:--:-- 30716 Extracting rubygems-1.8.25 ... Removing old Rubygems files... Installing rubygems-1.8.25 for ruby-1.9.2-p320................... Installation of rubygems completed successfully. Saving wrappers to '/home/user/.rvm/wrappers/ruby-1.9.2-p320'........
ruby-1.9.2-p320 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). ruby-1.9.2-p320 - #importing default gemsets, this may take time....................... Install of ruby-1.9.2-p320 - #complete
#29 楼 @zhangyuxiu 提示说的是:ccache: failed to create /var/cache/ccache/tmp (Permission denied) 应该是:ccache 文件夹没有写权限。我修改了 ccache 文件夹的权限,之后问题就解决了。现在已经安装好 ruby 1.9.2 了。
太感谢了!Thank you!
#25 楼 @ZombieCoder 恩,/tmp 的权限是:drwxrwsr-x. 2 root ccache 4096 9 月 14 2012 tmp,那我把权限改成:drwxrwsrwx 么?
#5 楼 @huacnlee 我主要看的是这个文章:http://ruby-china.org/wiki/rvm-guide
恩,我看了下您给的文章,步骤 0 的依赖安装,因为我是 Fedora14 的系统,那么应该执行下面的命令,把所有需要的依赖都安装么?不知道 Ubuntu 和 Fedora 下面对应的包名都一样么?
sudo yum install -y build-essential openssl curl libcurl3-dev libreadline6 libreadline6-dev git zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf automake libtool imagemagick libmagickwand-dev libpcre3-dev libsqlite3-dev libmysql-ruby libmysqlclient-dev
#2 楼 @Rei https://gist.github.com/anonymous/5734645 这个是 config.log 的内容。
#8 楼 @blacktulip 恩,我昨天用的 rvm 安装 ruby 1.9.2 但是存在了问题,没能解决。今天又重新找了一篇文章。 http://ruby-china.org/topics/11567 这是用 rvm 安装时,我存在的问题,您只需要看最后一楼。您看看能不能帮我解决了昨天的问题吧?
#6 楼 @blacktulip 您知道,为什么,我已经将 gem 源换成是淘宝源了,但是每次安装 gem install 的时候还是请求 rubygems 的源么,详细问题见下面的代码: [user@cloud-privacy /]$ gem sources --list *** CURRENT SOURCES *** http://ruby.taobao.org/ [user@cloud-privacy /]$ sudo gem install rails -V [sudo] password for user: GET http://rubygems.org/latest_specs.4.8.gz 302 Moved Temporarily GET http://production.s3.rubygems.org/latest_specs.4.8.gz
#6 楼 @blacktulip 我是按照这篇文章写的:http://thasulinux.wordpress.com/2011/01/26/install-rails-3-on-fedora-14/ 另外,刚刚那个问题,我突然想到,是不是 gem install xxx 的时候,前面必须加 sudo 啊。我先试一下,看能不能解决。