Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Debian 8, libuv "Unable to locate package" solved #248

Closed
Zelecktor opened this issue Dec 9, 2017 · 8 comments
Closed

Linux Debian 8, libuv "Unable to locate package" solved #248

Zelecktor opened this issue Dec 9, 2017 · 8 comments
Labels

Comments

@Zelecktor
Copy link

Hello.
Im trying to mine on a Linux debian 8.

Already i followed this instructions and installed all libraries.

Note*** that libuv1-dev says that that directory doesnt exist so i cant install it via command.

sudo apt-get install git build-essential cmake libmicrohttpd-dev
sudo apt-get install git build-essential cmake libcurl4-openssl-dev
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake .. -DUV_INCLUDE_DIR=path/to/libuv/include -DUV_LIBRARY=path/to/libuv.a
sudo make

So when making it says this error:

root@openkore:~/xmrig/build# sudo make
Scanning dependencies of target cpuid
[ 2%] Building C object src/3rdparty/libcpuid/CMakeFiles/cpuid.dir/cpuid_main.c.o
[ 4%] Building C object src/3rdparty/libcpuid/CMakeFiles/cpuid.dir/asm-bits.c.o
[ 6%] Building C object src/3rdparty/libcpuid/CMakeFiles/cpuid.dir/recog_amd.c.o
[ 8%] Building C object src/3rdparty/libcpuid/CMakeFiles/cpuid.dir/recog_intel.c.o
[ 11%] Building C object src/3rdparty/libcpuid/CMakeFiles/cpuid.dir/libcpuid_util.c.o
Linking C static library libcpuid.a
[ 11%] Built target cpuid
Scanning dependencies of target xmrig
[ 13%] Building CXX object CMakeFiles/xmrig.dir/src/api/Api.cpp.o
In file included from /root/xmrig/src/api/Api.cpp:27:0:
/root/xmrig/src/api/Api.h:28:16: fatal error: uv.h: No such file or directory
#include <uv.h>
^
compilation terminated.
CMakeFiles/xmrig.dir/build.make:54: recipe for target 'CMakeFiles/xmrig.dir/src/api/Api.cpp.o' failed
make[2]: *** [CMakeFiles/xmrig.dir/src/api/Api.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/xmrig.dir/all' failed
make[1]: *** [CMakeFiles/xmrig.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

captura

There is another method to compile or get a compiled version because i think that linux debian is not supported :(
Please i need some help. thanks in advance

@xmrig
Copy link
Owner

xmrig commented Dec 11, 2017

You need libuv1 to build it required dependency.
Thank you.

@xmrig xmrig added the libuv label Dec 11, 2017
@Zelecktor
Copy link
Author

how to install libuv1 on debian 8? it says "directory not found" on web :(

@ShadowJonathan
Copy link

ShadowJonathan commented Dec 16, 2017

@Zelecktor

cmake .. -DUV_INCLUDE_DIR=path/to/libuv/include -DUV_LIBRARY=path/to/libuv.a

change those to the respective paths

@ShadowJonathan
Copy link

run this

sudo apt-get install git build-essential cmake libmicrohttpd-dev libcurl4-openssl-dev
sudo apt-get install libuv1-dev
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake ..

@Zelecktor
Copy link
Author

root@dsifidhfisdf:~# sudo apt-get install libuv1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libuv1-dev

@z3dm4n
Copy link

z3dm4n commented Feb 12, 2018

@Zelecktor Are you sure you're running Debian 8 aka Jessie? What does cat /etc/debian_version say?

@Zelecktor
Copy link
Author

Zelecktor commented Feb 12, 2018

@z3dm4n

Already solved.
Yes it was Debian 8 Jessie and debian 7 Wheezy
Just installed libuv with this command

sudo apt-get install libuv-dev

"libuv1-dev" says "Unable to locate package" but with libuv-dev worked fine.

@Zelecktor Zelecktor changed the title Linux Devian 8, Can't Compile Linux Debian 8, libuv "Unable to locate package" solved Feb 12, 2018
@mbehrsf
Copy link

mbehrsf commented Mar 8, 2019

I used to build xmrig 2.8.0 on debian 8 using the libuv-dev package from the debian backports repo: https://packages.debian.org/jessie-backports/libuv1-dev .

This doesn't seem to work anymore with xmrig 2.14.1, getting similar errors to the ones Zelecktor is describing. Upgrading to debian 9 fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants