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".
Related
I try to install microsoft/vcpkg on Jetson Nano (Ubuntu 18.04)
I do
$ git clone https://github.com/microsoft/vcpkg
then
./vcpkg/bootstrap-vcpkg.sh
And I get
Unable to determine a binary release of vcpkg; attempting to build from source.
Building vcpkg-tool...
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/mnt/ALPR_Cpp/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/CMakeOutput.log".
Then of course I installed ninja-build version 1.8.2 but another problem occurred there (see the problem here). Is there any other solution without using Ninja?
sudo apt-get install ninja-build
I am trying to install the R Package with GPU support for XGBoost (https://xgboost.readthedocs.io/en/latest/build.html, "Installing R package with GPU support"). To do so, I have to use Cmake. I've tried the following code without luck .., loaded in as a CMakeLists.txt:
mkdir build
cd build
cmake .. -G"Visual Studio 16 2019 Win64" -DUSE_CUDA=ON -DR_LIB=ON
cmake --build . --target install --config Release
This provides an error I somehow can get past by ...:
CMake Error at CMakeLists.txt:1: Parse error. Expected "(", got
identifier with text "build".
Thank you!
I am getting an error while trying to install Rserve 1.8.6. I can successfully install 1.7.3 from CRAN. This is on Mac OS High Sierra.
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [forward] Error 1
make: *** [all] Error 2
ERROR: compilation failed for package ‘Rserve’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rserve’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rserve’
The downloaded source packages are in
‘/private/var/folders/v7/hyxrfmk94p1_03gdrm27fnxncy3vq1/T/RtmpFHKNMe/downloaded_packages’
This worked for me (MacOS):
In terminal:
brew install openssl
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
I'm running Mac OS 10.15 Catalina, I've spent 2 days trying to fix this same problem, scouring the internet for help. I finally managed it by cobbling together solutions from a few different sources.
The key thing I was missing was that Mac OS ships with its own version of openssl which it thinks is superior to anything else you can find. It is wrong. What you need to do is go and download the latest version of openssl, install that, then export THAT library to your library path variable. Here are the steps I took with openssl 1.1.1:
Get the version number for the latest version of openssl from the source (https://www.openssl.org/source/) and then manually install it directly where it's supposed to go:
cd /usr/local/src
If you're getting "No such file or directory", make it:
cd /usr/local && mkdir src && cd src
Download openssl using curl (shown) or using the link above to the source code (make sure you put the file in the directory you just made in the previous step):
curl --remote-name https://www.openssl.org/source/openssl-1.1.1f.tar.gz
Extract and cd in:
tar -xzvf openssl-1.1.1f.tar.gz
cd openssl-1.1.1f
Compile and install (these are the 64 bit Mac OS instructions. Refer to the openssl documentation for 32 bit and other OS instructions):
./Configure darwin64-x86_64-cc shared enable-ec_nistp_64_gcc_128 no-ssl2 no-ssl3 no-comp --openssldir=/usr/local/ssl/macos-x86_64
make depend
sudo make install
This created a new openssl folder so when you export the library path you have to feed it the right openssl folder:
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl#1.1/lib/
Hope that helps you if you haven't figured it out yet, and anyone else in the future who is ready to chuck their computer across the room, like I was.
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
I'm trying to configure my Qt for Embedded Linux with a virtual framebuffer according to these instructions. From the Qt for Embedded source folder, I'm trying:
./configure -embedded -opensource -confirm-license -verbose -qvfb
make
I get the following error which prevents me from doing make install:
.obj/release-shared-emb-x86/qtextcodec.o: In function `setup()':
qtextcodec.cpp:(.text+0x23cc): undefined reference to `QIconvCodec::QIconvCodec()'
collect2: ld returned 1 exit status
make[1]: *** [../../lib/libQtCore.so.4.8.4] Error 1
make[1]: Leaving directory `/home/cstjean/qt/src/corelib'
make: *** [sub-corelib-all-ordered] Error 2
If I do:
./configure -embedded -opensource -confirm-license -verbose -qvfb
make -no-iconv
sudo make install -no-iconv
...This works. But when I go into QtCreator, Tools > Options > Build & Run > Qt Versions, I try to select qmake for Qt Embedded (for me it's in /home/cstjean/qt/bin/qmake) and it tells me:
Qt version is not properly installed, please run make install
I've tried googling this like crazy. There are a lot of suggestions to download various libraries, which I've tried to no avail, but perhaps I'm missing something because this is a pretty fresh installation of Ubuntu I'm using.
Thanks.
I solved this problem by installing Gnome and starting over from scratch for my Qt Embedded for Linux installation.
I googled gnome for ubuntu 12.04 and found these instructions. You'll have to see which version of Ubuntu you have and search for that of course. You can see which version you have by typing into a command line:
lsb_release -a
Once I had gnome installed, I restarted my computer and signed in using Gnome.
Then I completely uninstalled and removed all traces of Qt Embedded:
cd yourQtEmbeddedDir
sudo make uninstall
cd ..
rm -r yourQtEmbeddedDir sourceFileTarYouHadDownloaded.tar.gz
I redownloaded the source file tar for Qt Embedded for Linux (from here) and proceeded to install according to these instructions after extracting the source files from the tar:
./configure -embedded -opensource -confirm-license -verbose -qvfb
make
sudo make install
Now, if you tell QtCreator about qmake from this installation, then QtCreator will no longer complain about a bad installation! Ta da!
Note: If you're attempting to the do the Virtual Framebuffer business too, then this is not the end of the road. You need to have Qt for X11 installed as well in order to compile qvfb.
Long story short: You need Gnome if you're trying to install Qt Embedded for Linux with a Virtual Framebuffer on Ubuntu!