Failed to build json (1.6.3) with native extension after I installed Xcode 4.2
The makefile references /usr/bin/gcc-4.2
… I solved this by creating a symlink to the correct executable:
sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2
Error occurring during bundle update
Try to install libv8 (gem install libv8), then installing therubyracer. You will need to have Apple XCode installed first (install from the App Store) as this includes the c compiler that you will need to build libv8.
EDIT: Once you have installed XCode, if you are using the latest version you will need to manually install the "command line tools" to get the c compiler, you can find this in XCode --> preferences --> downloads --> install command line tools.
Hope this helps you....
brew install apple-gcc42
gem install libv8
gem install therubyracer
react-native init project warnings and errors
I was able to build and run my project following the instructions here.
More specifically:
# Clean cache
rm -rf $TMPDIR/react-*; rm -rf $TMPDIR/haste-*; rm -rf $TMPDIR/metro-*; watchman watch-del-all
# Open a new tab and Start Metro Bundler directly from the project folder
react-native start --reset-cache
# Now run `react-native run-android` or `react-native run-ios`
It works, but starting like that, this makes me afraid to build a project using react native.
Unable to find a specification in CocoaPods
Instead of:
s.source = { :git => "git@github.com:myrepo/Podspecs.git", :branch => "xyz" }
Write this:
Don't forget the tag...
s.source = { :git => "https://github.com/myrepo/Podspecs.git", :branch => "xyz",
:tag => s.version.to_s }
Related Topics
Array Attribute for Ruby Model
How to Make Object Instance a Hash Key in Ruby
How to Read Lines from File into Array
Strange Activerecord::Associationtypemismatch
Ruby Easy Search for Key-Value Pair in an Array of Hashes
Rails 3 Initializes Extremely Slow on Ruby 1.9.2
Where/How to Include Helper Methods for Capybara Integration Tests
How to Get Searchlogic to Work with Rails 3
Cool Tricks and Expressive Snippets with Ruby Collections/Enumerables
How to Use "Gets" on a Rake Task
Rails Convert String to Number
Rails: Respond_To JSON and HTML
Check Ruby Http Response for Success