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
Related
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".
I tried to install nloptr on R 4.0.3, however I get this error:
/usr/bin/ld: /usr/local/lib/libnlopt.a(general.o): relocation R_X86_64_TPOFF32 against `nlopt_srand_called' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libnlopt.a(mt19937ar.o): relocation R_X86_64_TPOFF32 against `mti' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libnlopt.a(timer.o): relocation R_X86_64_TPOFF32 against `start_inited.4301' can not be used when making a shared object; recompile with -fPIC
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R/share/make/shlib.mk:10: nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/home/giovanni/R/x86_64-pc-linux-gnu-library/4.0/nloptr’
Warning in install.packages :
installation of package ‘nloptr’ had non-zero exit status
Can someone point me to a solution?
Thanks in advance.
The latest (2.6.2) package of libnlopt-dev is broken in Ubuntu 20, for some reason it is compiled into a static library (.so shared object is missing)
I faced the similar problem a couple of days ago. The quick fix is to download NLOPT fron Github and compile it yourself
https://nlopt.readthedocs.io/en/latest/NLopt_Installation/
At least, it worked for me.
I had a slightly related issue with this package, apt install cmake which was suggested by cli itself fixed the issue.
I also failed to install the nloptr but had another error.
g++: error: nlopt/lib/libnlopt.a: No such file or directory
I followed others suggestion to install the nlopt first as described in nlopt website. The installation process was
mkdir build
cd build
cmake ..
make
sudo make install
But I found the cmake version which nlopt needed should be higher than 3. The default cmake in my computer was version 2.8.12.2 which was /usr/bin/cmake. So I installed cmake version 3.24.2 in my home directory and compiled the nlopt using absolute path of cmake as ~/software/install/cmake-3.24.2-linux-x86_64/bin/cmake ... And I used sudo to install the nlopt in the computer. I could see the libnlopt.so libnlopt.so.0 libnlopt.so.0.11.1 files in /usr/local/lib64
When I went back to install the nloptr in R. It still failed. I found the cmake failure in the output information of installation. So I add the cmake(version 3.24.2) to my PATH in .bashrc file and then I installed the nloptr successfully.
I'm trying to compile glyr (for getting lyrics) from its source:
-DCMAKE_INSTALL_PREFIX=/usr .
This ends on error
-- checking for module 'sqlite3'
-- package 'sqlite3' not found
But I have already installed sqlite3 via homebrew, if I give
$ brew install sqlite3
Warning: sqlite-3.8.2 already installed
How do I fix this error?
From their compile instructions
Mac OS X
The instructions for Linux are almost the same, but a few more steps may be needed:
libintl is needed, install it from here https://code.google.com/p/rudix/downloads/detail?>name=static-libintl-0.18.1.1-5.pkg
You may need to link sqlite3.pc to /usr/local/pkgconfig/ with $ brew link --force sqlite
Details: https://github.com/sahib/glyr/issues/34
I downloaded gcc-ada-4.3.4.tar.gz when configure gave an error configure: error: cannot find install-sh or install.sh in . ./.. ./..
gcc version=4.3.4 using fedora16
On Fedora 16 you can do yum install gcc-gnat. This will install the appropriate GNAT version for your system.
If you really want to build it yourself, you have to install all dependencies first. You can find them easily.
I get this error message when i reload my .zshrc
dyld: Library not loaded: /usr/local/Cellar/libiconv/1.14/lib/libiconv.2.dylib
Referenced from: /usr/local/bin/zsh
Reason: Incompatible library version: zsh requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
I looked around a bit but i don't understand what I can do to fix it.
any idea?
brew uninstall zsh
then
brew install zsh
fixed it for me.