LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-13-2014, 10:18 AM   #1
blackRonin
Member
 
Registered: Jun 2014
Distribution: Debian 9.6
Posts: 68

Rep: Reputation: Disabled
Installing gpsd 3.10


Hello

I want use GPS module from my samsung s2.
So i found gpsd software
http://www.catb.org/gpsd/

But i have problem with installing it.
I read build.txt inside archive, and i think i installed all required packages.

But when i issue scons command:
Code:
root@new-host:/home/piotr/Pobrane/gpsd-3.10# scons && scons check && scons udev-install
scons: Reading SConscript files ...
Checking if compiler accepts -Wextra ...(cached) yes
Checking if compiler accepts -Wall ...(cached) yes
Checking if compiler accepts -Wno-uninitialized ...(cached) yes
Checking if compiler accepts -Wno-missing-field-initializers ...(cached) yes
Checking if compiler accepts -Wcast-align ...(cached) yes
Checking if compiler accepts -Wmissing-declarations ...(cached) yes
Checking if compiler accepts -Wmissing-prototypes ...(cached) yes
Checking if compiler accepts -Wstrict-prototypes ...(cached) yes
Checking if compiler accepts -Wpointer-arith ...(cached) yes
Checking if compiler accepts -Wreturn-type ...(cached) yes
Checking for chrpath... (cached) no
chrpath is not available or use of it has been disabled.
Checking whether the C++ compiler works(cached) yes
Checking for ncurses... (cached) no
Checking for ncurses5-config... (cached) no
Checking for ncursesw5-config... (cached) no
Checking for libusb-1.0... (cached) no
Checking for C library librt... (cached) yes
Checking for C library libcap... (cached) no
Checking for bluez... (cached) no
Checking for C header file sys/timepps.h... (cached) no
You do not have kernel PPS available.
Checking for C header file linux/can.h... (cached) yes
You have kernel CANbus available.
Checking if compiler supplies __ORDER_BIG_ENDIAN__ ...(cached) no
Checking for C header file endian.h... (cached) yes
Checking for C function daemon()... (cached) yes
Checking for C function strlcpy()... (cached) no
Checking for C function strlcat()... (cached) no
Checking for C function clock_gettime()... (cached) yes
Checking for C function pselect()... (cached) yes
Checking if sys/ioctl.h supplies TIOCMIWAIT ...(cached) yes
Checking that xsltproc can make man pages... (cached) no
Checking for QtNetwork... (cached) yes
Altered configuration variables:
bluez = False (default True): BlueZ support for Bluetooth devices
scons: done reading SConscript files.
scons: Building targets ...
scons: `build' is up to date.
scons: done building targets.
scons: Reading SConscript files ...
Checking if compiler accepts -Wextra ...(cached) yes
Checking if compiler accepts -Wall ...(cached) yes
Checking if compiler accepts -Wno-uninitialized ...(cached) yes
Checking if compiler accepts -Wno-missing-field-initializers ...(cached) yes
Checking if compiler accepts -Wcast-align ...(cached) yes
Checking if compiler accepts -Wmissing-declarations ...(cached) yes
Checking if compiler accepts -Wmissing-prototypes ...(cached) yes
Checking if compiler accepts -Wstrict-prototypes ...(cached) yes
Checking if compiler accepts -Wpointer-arith ...(cached) yes
Checking if compiler accepts -Wreturn-type ...(cached) yes
Checking for chrpath... (cached) no
chrpath is not available or use of it has been disabled.
Checking whether the C++ compiler works(cached) yes
Checking for ncurses... (cached) no
Checking for ncurses5-config... (cached) no
Checking for ncursesw5-config... (cached) no
Checking for libusb-1.0... (cached) no
Checking for C library librt... (cached) yes
Checking for C library libcap... (cached) no
Checking for bluez... (cached) no
Checking for C header file sys/timepps.h... (cached) no
You do not have kernel PPS available.
Checking for C header file linux/can.h... (cached) yes
You have kernel CANbus available.
Checking if compiler supplies __ORDER_BIG_ENDIAN__ ...(cached) no
Checking for C header file endian.h... (cached) yes
Checking for C function daemon()... (cached) yes
Checking for C function strlcpy()... (cached) no
Checking for C function strlcat()... (cached) no
Checking for C function clock_gettime()... (cached) yes
Checking for C function pselect()... (cached) yes
Checking if sys/ioctl.h supplies TIOCMIWAIT ...(cached) yes
Checking that xsltproc can make man pages... (cached) no
Checking for QtNetwork... (cached) yes
Altered configuration variables:
bluez = False (default True): BlueZ support for Bluetooth devices
scons: done reading SConscript files.
scons: Building targets ...
Run normal regression tests for 3.10...
check_compile(["python-compilation-regress"], ["gpscap.py", "gpssim.py", "jsongen.py", "leapsecond.py", "maskaudit.py", "test_json_validity.py", "test_maidenhead.py", "valgrind-audit.py", "gps/__init__.py", "gps/client.py", "gps/fake.py", "gps/gps.py", "gps/misc.py", "gpscat", "gpsfake", "gpsprof", "xgps", "xgpsspeed", "gegps", "SConstruct"])
Consistency-checking driver methods...
./test_packet -c >/dev/null
./test_packet: error while loading shared libraries: libgpsd.so.22: cannot open shared object file: No such file or directory
scons: *** [packet-regress] Error 127
scons: building terminated because of errors.
ls shows, that i have libgps.so
root@new-host:/home/piotr/Pobrane/gpsd-3.10# ll libgps.*
Quote:
-rw-rw-r--. 1 piotr piotr 10530 08-11 09:33 libgps.3
-rw-rw-r--. 1 piotr piotr 204940 08-11 09:20 libgps.a
-rw-rw-r--. 1 piotr piotr 1524 2013-11-21 libgps.h
-r--r--r--. 1 piotr piotr 200 08-11 09:34 libgps.pc
-rw-rw-r--. 1 piotr piotr 208 2013-11-21 libgps.pc.in
lrwxrwxrwx. 1 piotr piotr 16 08-11 09:20 libgps.so -> libgps.so.21.0.0
lrwxrwxrwx. 1 piotr piotr 16 08-11 09:20 libgps.so.21 -> libgps.so.21.0.0
lrwxrwxrwx. 1 piotr piotr 16 08-11 09:20 libgps.so.21.0 -> libgps.so.21.0.0
-rwxrwxr-x. 1 piotr piotr 125977 08-11 09:20 libgps.so.21.0.0
-rw-rw-r--. 1 piotr piotr 13765 2013-11-21 libgps.xml
I couldn't find that error in net.
Please help

Last edited by blackRonin; 08-13-2014 at 10:21 AM.
 
Old 08-13-2014, 11:22 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,412

Rep: Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111
Quote:
Originally Posted by blackRonin View Post
Hello
I want use GPS module from my samsung s2. So i found gpsd software http://www.catb.org/gpsd/

But i have problem with installing it. I read build.txt inside archive, and i think i installed all required packages. But when i issue scons command:
Code:
root@new-host:/home/piotr/Pobrane/gpsd-3.10# scons && scons check && scons udev-install
scons: Reading SConscript files ...
./test_packet: error while loading shared libraries: libgpsd.so.22: cannot open shared object file: No such file or directory
ls shows, that i have libgps.so
root@new-host:/home/piotr/Pobrane/gpsd-3.10# ll libgps.*
Code:
rw-rw-r--. 1 piotr piotr 10530 08-11 09:33 libgps.3
lrwxrwxrwx. 1 piotr piotr 16 08-11 09:20 libgps.so.21 -> libgps.so.21.0.0
I couldn't find that error in net.
I bolded two things above; do you not see the problem?? It's looking for .so.22, and you have .so.21. Update the library, and re-compile.

Also, you don't say what version/distro of Linux you're using, but gpsd is probably already in your online repositories...have you tried to install it from there, rather than compiling from source?
 
Old 08-13-2014, 12:06 PM   #3
blackRonin
Member
 
Registered: Jun 2014
Distribution: Debian 9.6
Posts: 68

Original Poster
Rep: Reputation: Disabled
I'm using centos 6.5 64bit
There is no GPSD for centos in repos.
I can't find libgpsd.so.22, i found only libgpsd.so.20 in rpmfind.
 
Old 08-13-2014, 03:45 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,412

Rep: Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111
Quote:
Originally Posted by blackRonin View Post
I'm using centos 6.5 64bit There is no GPSD for centos in repos.
There are other repositories that have it, and both the gpsd-devel and gpsd packages can be found on http://rpm.pbone.net
http://rpm.pbone.net/index.php3/stat...86_64.rpm.html
http://rpm.pbone.net/index.php3/stat....i686.rpm.html
...both for CentOS 6.x.
Quote:
I can't find libgpsd.so.22, i found only libgpsd.so.20 in rpmfind.
The matching packages are available at pbone at the links above. That said, running the scons tool (as the build.txt file says), creates the libgpsd.so.22 file, along with those links. You should be able to manually move them into place.
 
Old 08-14-2014, 11:53 AM   #5
blackRonin
Member
 
Registered: Jun 2014
Distribution: Debian 9.6
Posts: 68

Original Poster
Rep: Reputation: Disabled
Ok, thank you for links, i will use them if I fail with manual compiling.

I don't understand this thing with libgpsd.so
Just now, i executed same command
scons && scons check && scons udev-install
and it gave me same result, but when i checked ls libgpsd.so* i see (libgpsd.so.22 appeard):
Quote:
lrwxrwxrwx. 1 piotr piotr 17 08-11 09:20 libgpsd.so -> libgpsd.so.22.0.0
lrwxrwxrwx. 1 piotr piotr 17 08-11 09:20 libgpsd.so.22 -> libgpsd.so.22.0.0
lrwxrwxrwx. 1 piotr piotr 17 08-11 09:20 libgpsd.so.22.0 -> libgpsd.so.22.0.0
-rwxrwxr-x. 1 piotr piotr 382979 08-11 09:20 libgpsd.so.22.0.0
I can't get it, why before this file was not created.
So now, i have to rename libgpsd.so.22.0.0 to libgpsd.so.22 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] issues with tangogps and gpsd mrmnemo Ubuntu 26 02-08-2012 04:42 PM
iPhone as GPSD device gandhioftherillo Linux - Software 4 04-23-2010 11:17 PM
Installing gpsdrive without gpsd System-Core Linux - Software 13 12-17-2009 03:36 PM
GPSD not working from non-root user? Archer36 Slackware 1 03-21-2006 09:54 PM
gpsd on a zaurus 6000L skunkburner Linux - Laptop and Netbook 4 07-07-2005 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration