rubygems

CocoaPods安装 详细

梦想与她 提交于 2020-04-10 14:30:15
开始安装 1 安装需要⽤到Ruby,虽然Mac⾃带了Ruby,不过版本有点⽼了,最好更新⼀下 sudo gem update --system 2 接下来输⼊系统密码就可以安装了,输⼊密码时不会显⽰的,输完回车就⾏了 3 因为Ruby的软件源rubygems.org被屏蔽了,所以要更换源 gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/ 4 接下来查看下源路径是否更换了 gem sources -l 5 接下来安装Cocoapods了 sudo gem install cocoapods 6 不过有可能出错(我就是出错了),出错的话执⾏下⾯的命令 sudo gem install -n /usr/local/bin cocoapods 7 安装cocospod pod setup 下载完就⼤功告成了(没有⽹络问题就可以开始使⽤了). 如果失败继续下⼀种⽅案 8 如果是下⾯的错误,说明⽹络导致下载时间⾮常长,所以,你可以在 sudo gem install -n /usr/local/bin cocoapods 命令后直接执⾏ git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos

Rails, post-deploy to Heroku: unable to run console, db:migrate

余生颓废 提交于 2020-03-12 04:40:10
问题 Good day, My team and I are trying to push our Rails app to Heroku - git push heroku dev:master is successful, but thereafter heroku run rails db:migrate , heroku run rails console , etc. all fail with the following error (full trace pasted at bottom of post): NoMethodError: undefined method `map' for nil:NilClass /app/vendor/bundle/ruby/2.4.0/gems/warden-jwt_auth-0.3.6/lib/warden/jwt_auth.rb:89:in `upcase_first_items' I tracked down the failing method upcase_first_items in the files of the

Heroku-18: Git push fails. Showing different versions of Ruby on push

随声附和 提交于 2020-03-03 14:00:22
问题 My apologies if this is a dumb question. I am not familiar with anything about Ruby. Also tried several solutions from SO. Managed to upgrade Ruby, resolve dependencies. Now just stuck and not able to move ahead. Any help is appreciated. Thank you. When I push, I get ruby v2.2.2 but I just upgraded to 2.5.7 which is supported by heroku-18. Here are CLI records: remote: Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1

gem install:无法构建gem native扩展(找不到头文件)

社会主义新天地 提交于 2020-02-29 10:50:13
我正在使用Fedora 14,我安装并运行了MySQL和MySQL服务器5.1.42。 现在我尝试以root用户身份执行此操作: gem install mysql 但我得到这个错误: Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out 这有什么不对? 在安装ruby 1.8.7。 和最新的rubygems 1.3.7。 #1楼 只是在我的PATH中添加ruby.h文件的路径 例如: export PATH = $ PATH:/ usr / src /

How to build task 'gems:install'

我与影子孤独终老i 提交于 2020-02-28 05:55:30
问题 I am deploying my rails app to a linux server and i have some of the rake tasks missing inlcuding rake gems:install and rake db I am running rails 2.3.4 from GEM. Why is this? How do I fix this? can I update somehow? they are missing from rake -T list rake apache2 # Build Apache 2 module rake clean # Remove compiled files rake clobber # Remove all generated files rake default # Build everything rake doc # Generate all documentation rake doxygen # Generate Doxygen C++ API documentation if ...

Can't add sources with gem

淺唱寂寞╮ 提交于 2020-02-26 08:31:27
问题 I'm trying to add http://rubygems.org/ in my sources because I can't use 'gem install NAME' (this error : Could not find a valid gem 'dashing' (>= 0) in any repository). So, I did this command : gem sources -a http://rubygems.org/ the result : ERROR: While executing gem ... (Gem::OperationNotSupportedError) Not connected to a tty and no default specified I give you my ENV : $ gem env RubyGems Environment: - RUBYGEMS VERSION: 2.4.5.1 - RUBY VERSION: 2.2.4 (2015-12-16 patchlevel 230) [i386

Bundle - copy-paste gems from another PC

只谈情不闲聊 提交于 2020-02-24 18:06:34
问题 I am trying to setup a rails application. The application depends on an enormously huge number of gems. The gems were preinstalled in the vendor/gems folder of a copy I obtained from a friend. Now, considering the unavailability of those closed source gems, bundle install --path /home/umang/projectname/vendor/gems fails with the message Could not find gemname in any of the sources . Is there a way I could copy-paste the gems from the vendor/gems/ folder into my gem installation directory and

Bundle - copy-paste gems from another PC

醉酒当歌 提交于 2020-02-24 17:59:31
问题 I am trying to setup a rails application. The application depends on an enormously huge number of gems. The gems were preinstalled in the vendor/gems folder of a copy I obtained from a friend. Now, considering the unavailability of those closed source gems, bundle install --path /home/umang/projectname/vendor/gems fails with the message Could not find gemname in any of the sources . Is there a way I could copy-paste the gems from the vendor/gems/ folder into my gem installation directory and

installing RSRuby in Ubuntu 10.04

怎甘沉沦 提交于 2020-02-22 07:05:42
问题 I'm trying to install RSRuby on Ubuntu 10.04. I barely even know what error messages to report as the relevant ones; I've just been googling around for several hours and none of the commands I try solve the problem. Here are a few sample error messages: $ sudo gem install rsruby -- --with-R-dir=/usr/lib/R Building native extensions. This could take a while... ERROR: Error installing rsruby: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb --with-R-dir=/usr/lib/R

Elastic Beanstalk: can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)

末鹿安然 提交于 2020-01-31 05:16:12
问题 This error message is a well known error message. (see https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html for example.) Although I'm getting it with a new Elastic Beanstalk application with Ruby 2.6.1, and bundler 2.0.1. The error is: /opt/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) from /opt/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems.rb