I created my app. When I try to install a podfile there, it shows me an error:
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
/usr/local/bin/pod init
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
CocoaPods : 1.5.3
Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
RubyGems : 2.5.2.3
Host : (18G95)
Xcode : 11.0 (11A420a)
Git : git version 2.21.0 (Apple Git-122)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git # 6359a249f00fcdd63324ef44a867f16591aac646
### Plugins
cocoapods-deintegrate : 1.0.2
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.0
cocoapods-try : 1.1.0
### Error
RuntimeError - [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa.
If this attribute was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:321:in `configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:262:in `new_from_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `each'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `each'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:262:in `new_from_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `each'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `each'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:262:in `new_from_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:203:in `initialize_from_file'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:103:in `open'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command/init.rb:41:in `validate!'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:333:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=%5B%21%5D+Xcodeproj+doesn%27t+know+about+the+following+attributes+%7B%22inputFileListPaths%22%3D%3E%5B%5D%2C+%22outputFileListPaths%22%3D%3E%5B%5D%7D+for+the+%27PBXShellScriptBuildPhase%27+isa.%0AIf+this+attribute+was+generated+by+Xcode+please+file+an+issue%3A+https%3A%2F%2Fgithub.com%2FCocoaPods%2FXcodeproj%2Fissues%2Fnew&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
/Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.1.3/lib/gh_inspector/sidekick.rb:95:in `parse_results': undefined method `map' for nil:NilClass (NoMethodError)
Did you mean? tap
from /Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.1.3/lib/gh_inspector/sidekick.rb:34:in `search'
from /Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.1.3/lib/gh_inspector/inspector.rb:68:in `search_query'
from /Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.1.3/lib/gh_inspector/inspector.rb:62:in `search_exception'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface/error_report.rb:119:in `search_for_exceptions'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:67:in `report_error'
from /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:396:in `handle_exception'
from /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:337:in `rescue in run'
from /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:324:in `run'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:22:in `load'
from /usr/local/bin/pod:22:in `<main>'
Please help me for fix this problem
This happens because of this line:
Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa.
This is a know bug introduced in Xcode 10, that has conflict with Cocoapods 1.5.x. The .xcodeproj file included two vars inside the scriptBuildPhase that Cocoapods doesn't know how to parse.
You have two possible solutions:
1) Updating Cocoapods xcodeproj gem:
sudo gem update xcodeproj
2) Manually removing inputFileListPaths and outputFileListPaths from your project file:
Right click in the .xcodeproj file > Show Package Content > open the .pbxproj file using any text editor > find and remove all the inputFileListPaths and outputFileListPaths references:
Related
Pod install was working until it suddenly stopped with the error ArgumentError - invalid byte sequence in US-ASCII Jenkins.
I tried adding export LC_ALL="en_US.UTF-8" to my bash_profile and sourcing from it in terminal but that did not help. I cannot find the ~/.bashrc or ~/.zshrc files. Pod install also works in terminal but not Jenkins
pod install --verbose
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
[0m
Ignoring ffi-1.14.2 because its extensions are not built. Try: gem pristine ffi --version 1.14.2
Preparing
Analyzing dependencies
Inspecting targets to integrate
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/http.rb:1109: warning: The environment variable HTTP_PROXY is discouraged. Use http_proxy.
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Command
/usr/local/Cellar/cocoapods/1.10.1/libexec/bin/pod install --verbose
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
CocoaPods : 1.10.1
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
RubyGems : 3.0.3
Host : macOS 11.4 (20F71)
Xcode : 12.5 (12E262)
Git : git version 2.30.1 (Apple Git-130)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git # e6eac0770b8860823225a364d6e56c215581d90b
Plugins
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-trunk : 1.5.0
cocoapods-try : 1.2.0
Podfile
project 'FPExperience.xcodeproj'
# ignore all warnings from all pods
inhibit_all_warnings!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_CODE_COVERAGE'] = 'NO'
end
end
end
Error
ArgumentError - invalid byte sequence in US-ASCII
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/config.rb:277:in `split'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/config.rb:277:in `hash_from_file_content'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/config.rb:259:in `extract_hash'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/config.rb:64:in `initialize'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/build_configuration.rb:241:in `new'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/build_configuration.rb:241:in `config'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/build_configuration.rb:97:in `resolve_build_setting'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/build_configuration.rb:102:in `resolve_build_setting'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/configuration_list.rb:78:in `block in get_setting'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/configuration_list.rb:77:in `each'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/configuration_list.rb:77:in `get_setting'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/native_target.rb:55:in `resolved_build_setting'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer/target_inspector.rb:226:in `block in compute_swift_version_from_targets'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer/target_inspector.rb:220:in `each'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer/target_inspector.rb:220:in `inject'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer/target_inspector.rb:220:in `compute_swift_version_from_targets'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer/target_inspector.rb:45:in `compute_results'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1189:in `block (3 levels) in inspect_targets_to_integrate'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1187:in `each'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1187:in `block (2 levels) in inspect_targets_to_integrate'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1185:in `each'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1185:in `block in inspect_targets_to_integrate'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1180:in `inspect_targets_to_integrate'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:106:in `analyze'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/usr/local/Cellar/cocoapods/1.10.1/libexec/bin/pod:23:in `load'
/usr/local/Cellar/cocoapods/1.10.1/libexec/bin/pod:23:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=invalid+byte+sequence+in+US-ASCII&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
Missing install instructions for linux (install deps)
https://github.com/CocoaPods/CocoaPods/issues/9956 [open] [2 comments]
05 Mar 2021
invalid byte sequence in US-ASCII
https://github.com/CocoaPods/CocoaPods/issues/1036 [closed] [10 comments]
22 Apr 2021
CocoaPods requires your terminal to be using UTF-8 encoding and it aborts to run pod
https://github.com/CocoaPods/CocoaPods/issues/6333 [closed] [9 comments]
7 weeks ago
and 21 more at:
https://github.com/cocoapods/cocoapods/search?q=invalid%20byte%20sequence%20in%20US-ASCII&type=Issues&utf8=✓
Solution was to add following to section titled environment {
in pipeline
LANG="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
[!] CocoaPods was not able to update the master repo. If this is an unexpected issue and persists you can inspect it running pod repo update --verbose
Re-installing cocoapods doesn't fix the issue..
Verbose output:
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/lib/cocoapods/sources_manager.rb:112:in `rescue in update_git_repo'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/lib/cocoapods/sources_manager.rb:106:in `update_git_repo'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/lib/cocoapods/sources_manager.rb:126:in `update_git_repo'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.2.1/lib/cocoapods-core/source.rb:334:in `update'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.2.1/lib/cocoapods-core/master_source.rb:15:in `update'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/lib/cocoapods/sources_manager.rb:88:in `block (2 levels) in update'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/lib/cocoapods/sources_manager.rb:87:in `block in update'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/lib/cocoapods/sources_manager.rb:86:in `each'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/lib/cocoapods/sources_manager.rb:86:in `update'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/lib/cocoapods/command/repo/update.rb:23:in `run'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:52:in `run'
/Users/wojtek/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocoapods-1.2.1/bin/pod:55:in `<top (required)>'
/Users/wojtek/.rbenv/versions/2.2.4/bin/pod:23:in `load'
/Users/wojtek/.rbenv/versions/2.2.4/bin/pod:23:in `<main>'
Wojtek-Juramy-Macbook-Pro:433 wojtek$
Using pod install --repo-update instead of using pod repo update seems to fix the issue
I just downloaded a blog model in github and want to do some modification myself. so I ran
$ jekyll build
but faild to generate the local server, the error message is listed below:
mywebsite git:(gh-pages) ✗ jekyll build
Configuration file: /Users/phoenix/Documents/script/mywebsite/_config.yml
/usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- jekyll-paginate (LoadError)
from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.1/lib/jekyll/plugin_manager.rb:30:in `block in require_gems'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.1/lib/jekyll/plugin_manager.rb:27:in `each'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.1/lib/jekyll/plugin_manager.rb:27:in `require_gems'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.1/lib/jekyll/plugin_manager.rb:19:in `conscientious_require'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.1/lib/jekyll/site.rb:97:in `setup'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.1/lib/jekyll/site.rb:49:in `initialize'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.1/lib/jekyll/commands/build.rb:30:in `new'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.1/lib/jekyll/commands/build.rb:30:in `process'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.1/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.1/bin/jekyll:17:in `<top (required)>'
from /usr/local/bin/jekyll:23:in `load'
from /usr/local/bin/jekyll:23:in `<main>'
but when I ran
$ jekyll new newsite and jekyll server, it works just fine.
My os is OS X 10.11, Jykell 3.0.1, can anyone tell my how to generate a local server in an already exists directory?
Okay, I found a solution myself. I followed the instructions from this site:
http://www.blogways.net/blog/2013/04/08/install-jekyll-on-mac.html
for those who can't read Chinese, I run the following commands in terminal:
$export PATH=/usr/local/opt/ruby/bin:$PATH
$gem install jekyll rdiscount RedCloth
$gem install github-pages
now it works. But I am still not sure what exactly went wrong, I guess it was that I missed some module for Markdown or it was the ruby path issue..
I am new to ruby on rails.... I want to install OPEN SOURCE TICKET MANAGER created by BRIMIR http://getbrimir.com/ .... I have installed ruby 1.9.3, bundler 1.0.10.... but when i tried to install gem by giving command bundle install it shows following fatal error
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on o
r after 2011-11-01.
Gem.source_index called from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/
lib/bundler/shared_helpers.rb:3.
Fetching https://github.com/ivaldi/foundation_rails_helper.git
C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/source.rb:560:in
``': No such file or directory - git clone "https://github.com/ivaldi/foundation
_rails_helper.git" "C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/foundation_
rails_helper-c76b733ae8c7a4126f399e570cfc6ba3596f5359" --bare --no-hardlinks (Er
rno::ENOENT)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/sour
ce.rb:560:in `git'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/sour
ce.rb:619:in `cache'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/sour
ce.rb:532:in `specs'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/defi
nition.rb:147:in `block in resolve'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/defi
nition.rb:145:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/defi
nition.rb:145:in `resolve'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/defi
nition.rb:90:in `specs'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/defi
nition.rb:85:in `resolve_remotely!'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/inst
aller.rb:35:in `run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/inst
aller.rb:8:in `install'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/cli.
rb:226:in `install'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vend
or/thor/task.rb:22:in `run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vend
or/thor/invocation.rb:118:in `invoke_task'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vend
or/thor.rb:246:in `dispatch'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vend
or/thor/base.rb:389:in `start'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/bin/bundle:13:in
`<top (required)>'
from C:/Ruby193/bin/bundle:23:in `load'
from C:/Ruby193/bin/bundle:23:in `<main>'
Most gems do not like to work in Windows. You should use a better operating system (just any OS different than Windows should work)
after seeing you error stack trace i guess either u have't installed git on your computer or u have not set its Path. please double check it. after that when i copy and paste this link "https://github.com/ivaldi/foundation_rails_helper.git" then i found 404 error. which mean the url its trying to clone the project is not valid anymore. you should look this link "https://github.com/ivaldi/brimir" and follow the instructions.
I try to create a rails app in rails 4.00 with ruby ruby-2.0.0-p247. While bundle install processes, it shows an error: initialize: No such file or directory. Below is output of error
run bundle install
/home/gotzila/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:878:in `initialize': No such file or directory - getaddrinfo (Errno::ENOENT)
from /home/gotzila/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:878:in `open'
from /home/gotzila/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
from /home/gotzila/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
from /home/gotzila/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:877:in `connect'
from /home/gotzila/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:1449:in `begin_transport'
from /home/gotzila/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:1402:in `transport_request'
from /home/gotzila/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:1376:in `request'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/vendor/net/http/persistent.rb:935:in `request'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/fetcher.rb:202:in `fetch'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/fetcher.rb:242:in `fetch_dependency_remote_specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/fetcher.rb:151:in `fetch_remote_specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/fetcher.rb:154:in `fetch_remote_specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/fetcher.rb:154:in `fetch_remote_specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/fetcher.rb:154:in `fetch_remote_specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/fetcher.rb:106:in `specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:235:in `block in remote_specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:235:in `each'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:235:in `remote_specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:163:in `fetch_specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:67:in `specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/definition.rb:192:in `block (2 levels) in index'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/definition.rb:189:in `each'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/definition.rb:189:in `block in index'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/index.rb:9:in `build'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/definition.rb:185:in `index'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/definition.rb:179:in `resolve'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/definition.rb:109:in `resolve_remotely!'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/installer.rb:83:in `run'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/installer.rb:14:in `install'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/cli.rb:247:in `install'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in `run'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in `dispatch'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in `start'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/bin/bundle:20:in `block in <main>'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in `with_friendly_errors'
from /home/gotzila/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/bin/bundle:20:in `<main>'
Fetching gem metadata from https://rubygems.org/....Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
What should i do to solve this problem?
I just had a similar issue and after reinstalling rvm (a headache) a couple days later it came back. This time I tried using comments to isolate which gems in my Gemfile were causing the problem. I noticed it was new gems. Then I tried to simply
gem install <problem_gem>
ERROR: Could not find a valid gem 'problem_gem' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/latest_specs.4.8.gz)
This made me think I wasn't connected to the internet. Once I connected again.
bundle worked!
bundle install
Clean and Reinstall new RVM and then try again..
Follow this link to install new RVM:
https://rvm.io/rvm/install
I faced similar problem and I installed the current stable version rvm 1.21.13 (stable) of RVM to get rid of this. Although my ruby version was 1.9.3 instead of 2.x