Rubymotion ask for Xcode 4.x, but that version is already installed - xcode4

I tried to ran rake in a rubymotion project and he shows the following error message
ERROR! Xcode 4.x or greater is required
But I have Xcode 4.3.2 installed on my Mac
What can I do?
PD: I installed Xcode 4.4.1 and now the error is this
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36: command not found: /Applications/Xcode 2.app/Contents/Developer/usr/bin/xcodebuild -version
Build ./build/iPhoneSimulator-5.1-Development
sh: /Applications/Xcode: No such file or directory
sh: /Applications/Xcode: No such file or directory
sh: /Applications/Xcode: No such file or directory
Compile ./app/app_delegate.rb
sh: /Applications/Xcode: No such file or directory
rake aborted!
Command failed with status (127): [/Applications/Xcode 2.app/Contents/Develop...]
Tasks: TOP => default => simulator => build:simulator
(See full trace by running task with --trace)

Perhaps you have an old version of Xcode also installed on your system. From the "Getting Started" page on RubyMotion's web site:
If you happened to have an older version of Xcode installed on your machine before you installed a newer Xcode from the App Store, you may want to type the following command in order to properly set up the default Xcode path.
$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

Related

Cmake error at CmakeLists.txt:3 (include)

I am trying to build the R package with GPU support to run xgboost following these steps, in ubuntu 20.04:
XGboost was installed from Rstudio with install.packages("xgboost")
cmake is installed from terminal with the command: sudo snap install cmake --classic
CMake version 3.21.2 was installed and verified
The terminal command:cmake .. -DUSE_CUDA=ON -DR_LIB=ON is used from the ~xgboost/build/
directory following the procedure from here, but it shows several errors related to the CMakeLists.txt file as shown below ...I downloaded the CMakeLists.txt file from GitHub, and placed it in the ~/xgboost/ path, but errors keep showing
How may I correct those errors? Thank you in advance for any advice!
This is my ubuntu 20.04 terminal
------- ubuntu 20.04 terminal ---
ricardo#ricardo:~/R/x86_64-pc-linux-gnu-library/3.6/xgboost/build$
cmake .. -DUSE_CUDA=ON -DR_LIB=ON
CMake Error at CMakeLists.txt:3 (include):
include could not find requested file:
cmake/Utils.cmake
-- CMake version 3.21.2
CMake Error at CMakeLists.txt:20 (include):
include could not find requested file:
/home/ricardo/R/x86_64-pc-linux-gnu-library/3.6/xgboost/cmake/FindPrefetchIntrinsics.cmake
CMake Error at CMakeLists.txt:21 (find_prefetch_intrinsics):
Unknown CMake command "find_prefetch_intrinsics".
-- Configuring incomplete, errors occurred!
See also "/home/ricardo/R/x86_64-pc-linux-gnu-library/3.6/xgboost/build/CMakeFiles/CMakeOutput.log".

Cmake on macOS error: Could not find MySQL headers

When running the cmake command in order to compile AzerothCore on macOS Mojave, I'm using the parameteres:
-DMYSQL_ADD_INCLUDE_PATH=/usr/local/include
-DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient_r.dylib
however the cmake fails with the following error:
CMake Error at src/cmake/macros/FindMySQL.cmake:179 (message): Could
not find MySQL headers! Please install the development libraries and
headers Call Stack (most recent call first): CMakeLists.txt:93
(find_package)
I solved by installing and linking mysql56 with brew:
brew install mysql56
brew link mysql56 --force

How to connect SQLite3 with Electron (Win10)

I'm trying to connect my Electron project with SQLite3 but I'm encountering an error that say's
An unhandled error occurred inside electron-rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [E:\Personal_Projects\myquiz\node_modules\sqlite3\build\deps\action_before_build.vcxproj]
I've followed these steps:
1. install electron-rebuild (npm install --save-dev electron-rebuild)
2. install sqlite3 using npm (npm install --save sqlite3)
I've already found the solution just download and install the SDK 8.1 version.

ERROR in ./node_modules/css-loader? - in my styles.css #import "~bootstrap/dist/css/bootstrap.css"

I am using - following configuration on windows 8 64 bit.
Angular CLI: 1.6.4 Node: 8.9.4 OS: win32 x64 Angular: 5.2.2
typescript: 2.5.3 webpack: 3.10.0
Following error occurs when trying to (compile webpack)run angular
on cli:-
ERROR in
./node_modules/css-loader?{"sourceMap":false,"import":false}!./node_mod
ules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./src/styles.css
Module build failed: Error: Can't resolve
'~bootstrap/dist/css/bootstrap.css' in 'F:\code\hello-world\src' at
onError
(F:\code\hello-world\node_modules\enhanced-resolve\lib\Resolver.j
s:61:15)
# ./src/styles.css 4:14-138 # multi ./src/styles.css
webpack: Failed to compile.
There are some things you can try,
Run npm install command again.
Try delete the entire npm_modules folder and run npm install.
Try reinstalling bootstrap.
Make sure you are installing the latest bootstrap.
Try updating the Angular CLI as some version of it has some issues, or uninstall and install it.
If none of the above worked, you can do npm rebuild node-sass command.
I hope any of the above steps will work for you.

No such file or directory -- extconf.rb (Loa dError) - Installing json (1.8.0)

I should probably start by saying that I am new to rails. This specific error message came up as i was trying to run bundle install. Error pops up once installation gets to json.
=============================================================================
Installing json (1.8.0)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
D:/Dev/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
D:/Dev/RailsInstaller/Ruby1.9.3/bin/ruby.exe: No such file or directory -- extconf.rb (Loa
dError)
Gem files will remain installed in D:/Dev/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gem
s/json-1.8.0 for inspection.
Results logged to D:/Dev/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.0/ext/
json/ext/generator/gem_make.out
An error occurred while installing json (1.8.0), and Bundler cannot continue.
Make sure that gem install json -v '1.8.0' succeeds before bundling.
===============================================================================
gem_make.out log file is showing
===============================================================================
D:/Dev/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
D:/Dev/RailsInstaller/Ruby1.9.3/bin/ruby.exe: No such file or directory -- extconf.rb (LoadError)
===============================================================================
I already tried running gem install json and essentially got the same error message. DevKit is already installed. Reinstalling it made no difference.
Ruby version is 1.9.3p392
Rails version is 3.2.13
OS is Windows7 64bit
installation was completed using rubyinstaller.
Any help will be greatly appreciated.
I got the same error when trying to install Cucumber using the Gemfile provided in The Cucumber Book (p. 299) and also with gem install json.
When trying gem install cucumber it worked:
Fetching: multi_json-1.8.0.gem (100%)
Successfully installed multi_json-1.8.0
...
hth
Frank

Resources