How to install gattlib in Raspberry Pi 3
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I compiled, built and packaged GATTLIB library files in Raspberry Pi 3 as directed in https://github.com/labapart/gattlib. But when trying to install the library from the build folder (/home/pi/Downloads/gattlib-src-root/gattlib-master/build
) by using
sudo apt-get install gattlib
I got error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gattlib
Please advise me what is the correct way to install GATTLIB in Raspberry pi 3.
apt package-management software-installation raspberrypi
 |Â
show 4 more comments
up vote
0
down vote
favorite
I compiled, built and packaged GATTLIB library files in Raspberry Pi 3 as directed in https://github.com/labapart/gattlib. But when trying to install the library from the build folder (/home/pi/Downloads/gattlib-src-root/gattlib-master/build
) by using
sudo apt-get install gattlib
I got error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gattlib
Please advise me what is the correct way to install GATTLIB in Raspberry pi 3.
apt package-management software-installation raspberrypi
Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, usesudo dpkg -i pkg-name.deb
to install it.
â mikewhatever
Apr 19 at 21:05
Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
â Paul Tomov
Apr 19 at 22:06
The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
â Paul Tomov
Apr 19 at 22:16
Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
â Paul Tomov
Apr 19 at 22:41
2
Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
â David Foerster
Apr 20 at 8:38
 |Â
show 4 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I compiled, built and packaged GATTLIB library files in Raspberry Pi 3 as directed in https://github.com/labapart/gattlib. But when trying to install the library from the build folder (/home/pi/Downloads/gattlib-src-root/gattlib-master/build
) by using
sudo apt-get install gattlib
I got error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gattlib
Please advise me what is the correct way to install GATTLIB in Raspberry pi 3.
apt package-management software-installation raspberrypi
I compiled, built and packaged GATTLIB library files in Raspberry Pi 3 as directed in https://github.com/labapart/gattlib. But when trying to install the library from the build folder (/home/pi/Downloads/gattlib-src-root/gattlib-master/build
) by using
sudo apt-get install gattlib
I got error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gattlib
Please advise me what is the correct way to install GATTLIB in Raspberry pi 3.
apt package-management software-installation raspberrypi
edited Apr 20 at 9:31
![](https://i.stack.imgur.com/E0SEH.png?s=32&g=1)
![](https://i.stack.imgur.com/E0SEH.png?s=32&g=1)
David Foerster
26.1k1361106
26.1k1361106
asked Apr 19 at 20:56
Paul Tomov
1
1
Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, usesudo dpkg -i pkg-name.deb
to install it.
â mikewhatever
Apr 19 at 21:05
Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
â Paul Tomov
Apr 19 at 22:06
The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
â Paul Tomov
Apr 19 at 22:16
Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
â Paul Tomov
Apr 19 at 22:41
2
Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
â David Foerster
Apr 20 at 8:38
 |Â
show 4 more comments
Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, usesudo dpkg -i pkg-name.deb
to install it.
â mikewhatever
Apr 19 at 21:05
Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
â Paul Tomov
Apr 19 at 22:06
The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
â Paul Tomov
Apr 19 at 22:16
Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
â Paul Tomov
Apr 19 at 22:41
2
Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
â David Foerster
Apr 20 at 8:38
Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, use
sudo dpkg -i pkg-name.deb
to install it.â mikewhatever
Apr 19 at 21:05
Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, use
sudo dpkg -i pkg-name.deb
to install it.â mikewhatever
Apr 19 at 21:05
Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
â Paul Tomov
Apr 19 at 22:06
Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
â Paul Tomov
Apr 19 at 22:06
The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
â Paul Tomov
Apr 19 at 22:16
The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
â Paul Tomov
Apr 19 at 22:16
Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
â Paul Tomov
Apr 19 at 22:41
Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
â Paul Tomov
Apr 19 at 22:41
2
2
Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
â David Foerster
Apr 20 at 8:38
Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
â David Foerster
Apr 20 at 8:38
 |Â
show 4 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026521%2fhow-to-install-gattlib-in-raspberry-pi-3%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, use
sudo dpkg -i pkg-name.deb
to install it.â mikewhatever
Apr 19 at 21:05
Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
â Paul Tomov
Apr 19 at 22:06
The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
â Paul Tomov
Apr 19 at 22:16
Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
â Paul Tomov
Apr 19 at 22:41
2
Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
â David Foerster
Apr 20 at 8:38