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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-13-2014, 10:18 AM
|
#1
|
Member
Registered: Jun 2014
Distribution: Debian 9.6
Posts: 68
Rep:
|
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.
|
|
|
08-13-2014, 11:22 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,412
|
Quote:
Originally Posted by blackRonin
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?
|
|
|
08-13-2014, 12:06 PM
|
#3
|
Member
Registered: Jun 2014
Distribution: Debian 9.6
Posts: 68
Original Poster
Rep:
|
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.
|
|
|
08-13-2014, 03:45 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,412
|
Quote:
Originally Posted by blackRonin
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.
|
|
|
08-14-2014, 11:53 AM
|
#5
|
Member
Registered: Jun 2014
Distribution: Debian 9.6
Posts: 68
Original Poster
Rep:
|
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 ?
|
|
|
All times are GMT -5. The time now is 10:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|