the PPA for OpenCPN is broken
When I try and install OpenCPN using the software centre a lot of packages have been downloaded but when I try and install the packages I get an error message:
Package dependencies could not be resolved
This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.
Same thing happens if I try and install using the command line
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- John Wilson
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Contact the PPA maintainer and report the issue. They are the PPA maintainers packages.....
Revision history for this message
|
#2 |
Please try this procedure instead:
Revision history for this message
|
#3 |
Thank you for your suggestion.
Unfortunately it seems to fall apart at sudo make
Here is the output:
Reading state information... Done
The following packages were automatically installed and are no longer required:
caribou cinnamon-common cinnamon-
cinnamon-
cinnamon-
gir1.
gir1.
gir1.2-gconf-2.0 gir1.2-
gir1.
gir1.
gir1.2-nmgtk-1.0 gir1.2-polkit-1.0 gir1.2-
gnome-backgrounds gnome-icon-theme gnome-icon-
gnome-
libcaribou0 libcinnamon-
libcinnamon-
libkeybinder-
linux-
linux-
muffin-common nemo nemo-data nemo-fileroller netpbm python-gconf
python-pexpect python-pyatspi python-pyinotify python3-pexpect python3-pil
python3-renderpm python3-reportlab python3-
xscreensaver-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
Need to get 3,759 kB of archives.
After this operation, 24.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 3,759 kB in 3s (954 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 269675 files and directories currently installed.)
Preparing to unpack .../liberror-
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-
Unpacking git-man (1:2.5.
Selecting previously unselected package git.
Preparing to unpack .../git_
Unpacking git (1:2.5.
Processing triggers for man-db (2.7.4-1) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:2.5.
Setting up git (1:2.5.
john@john-
Cloning into 'OpenCPN'...
remote: Counting objects: 43839, done.
remote: Total 43839 (delta 0), reused 0 (delta 0), pack-reused 43839
Receiving objects: 100% (43839/43839), 226.46 MiB | 1.88 MiB/s, done.
Resolving deltas: 100% (30884/30884), done.
Checking connectivity... done.
john@john-
john@john-
john@john-
john@john-
bash: cd: build: No such file or directory
john@john-
bash: cd: build: No such file or directory
john@john-
make: *** No targets specified and no makefile found. Stop.
john@john-
Revision history for this message
|
#4 |
You skipped a command (to be run right after 'cd build'):
cmake ../
Revision history for this message
|
#5 |
If cmake is not installed yet, first run this command:
sudo apt-get install cmake
Revision history for this message
|
#6 |
cmake is already installed but things fall apart at cmake ../
Here is the output:
john@john-
-- *** Build Architecture is amd64
-- *** Staging to build opencpn 4.2.0 ***
-- *** Package will NOT include documentation ***
-- *** Package will NOT include GSHHS data ***
-- *** Package will NOT include tide and current data ***
-- Found OpenGL....
-- GL Lib: /usr/lib/
-- GL Include: /usr/include
-- Adding local GLU
-- Revised GL Lib: GLU_static/
-- Found wxWidgets...
-- wxWidgets Libraries: -L/usr/
-- Revised wxWidgets Libraries: -L/usr/
--
-- *** Staging to build opencpn ***
-- Build type: Release
-- *** Will install to /usr/local ***
-- Crash reporting enabled
-- Using Linux crash reporting
-- Portaudio Not Found...
CMake Error at /usr/share/
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.
-- Configuring incomplete, errors occurred!
See also "/home/
john@john-
Revision history for this message
|
#7 |
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
curl is not installed.
Install curl using this command:
sudo apt-get install curl
Install any other packages that are missing, if cmake complains about it....
Revision history for this message
|
#8 |
i seem to already have curl installed
john@john-
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
john@john-
I installed Portaudio using Synaptic but
Synaptic and apt-get could not find curl-library or curl-include-dir
john@john-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package curl-library
john@john-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package curl-include-dir
john@john-
When I run cmake ../ I get this:
john@john-
-- *** Build Architecture is amd64
-- *** Staging to build opencpn 4.2.0 ***
-- *** Package will NOT include documentation ***
-- *** Package will NOT include GSHHS data ***
-- *** Package will NOT include tide and current data ***
-- Found OpenGL....
-- GL Lib: /usr/lib/
-- GL Include: /usr/include
-- Adding local GLU
-- Revised GL Lib: GLU_static/
-- Found wxWidgets...
-- wxWidgets Libraries: -L/usr/
-- Revised wxWidgets Libraries: -L/usr/
--
-- *** Staging to build opencpn ***
-- Build type: Release
-- *** Will install to /usr/local ***
-- Crash reporting enabled
-- Using Linux crash reporting
-- Found Portaudio: /usr/lib/
-- Portaudio Found
CMake Error at /usr/share/
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.
-- Configuring incomplete, errors occurred!
See also "/home/
john@john-
The bottom of the CMakeOutput.log is this:
Detecting CXX [-std=c++98] compiler features compiled with the following output:
Change Dir: /home/john/
Run Build Command:
/usr/bin/make -f CMakeFiles/
make[1]: Entering directory '/home/
/usr/bin/cmake -E cmake_progress_
Building CXX object CMakeFiles/
/usr/bin/c++ -std=c++98 -o CMakeFiles/
Linking CXX executable cmTryCompileExe
/usr/bin/cmake -E cmake_link_script CMakeFiles/
/usr/bin/c++ CMakeFiles/
make[1]: Leaving directory '/home/
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Feature record: CXX_FEATURE:
Revision history for this message
|
#9 |
Run this Terminal command:
sudo apt-get install libcurl3 libcurl4-
Then retry compiling.
If that does not help, run the following Terminal commands:
cd ~/OpenCPN
sudo rm -rf build
mkdir build
cd build
cmake ../
sudo make
sudo checkinstall
# during checkinstall process, press 2 and manually change name from build to opencpn
apt-cache show opencpn
# if you forgot to change the name of the newly built package, you need to use this command instead:
apt-cache show build
/usr/local/
Revision history for this message
|
#10 |
Thank you for your continued help.
When compiling either with Mark911 or your Terminal commands I get as far as the cmake ../ and now I need some Cairo packages.
Here is the output:
-- *** Staging to build opencpn ***
-- Build type: Release
-- *** Will install to /usr/local ***
-- Crash reporting enabled
-- Using Linux crash reporting
-- Found Portaudio: /usr/lib/
-- Portaudio Found
-- Found CURL: /usr/lib/
-- wxCurl configured...
-- SVG support enabled...
-- Could NOT find CAIRO (missing: CAIRO_INCLUDE_DIR CAIRO_LIBRARY)
CMake Error at CMakeLists.txt:627 (message):
Cairo component required, but not found!
-- Configuring incomplete, errors occurred!
See also "/home/
john@john-
No luck with synaptic.
How do I find these packages?
Revision history for this message
|
#11 |
I guess it's
sudo apt-get install libcairo2-dev
Revision history for this message
|
#12 |
Glad to help. You are patient and this is an interesting problem.
Alright, I found an interesting page :-)
Run this SINGLE command in a Terminal (starts with sudo and ends with libcairo2-dev at the very end):
sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-
Then retry compiling. Should help a lot.
Source webpage: http://
Revision history for this message
|
#13 |
Manfred's suggestion produced the following output:
john@john-
-- *** Build Architecture is amd64
-- *** Staging to build opencpn 4.2.0 ***
-- *** Package will NOT include documentation ***
-- *** Package will NOT include GSHHS data ***
-- *** Package will NOT include tide and current data ***
-- Found OpenGL....
-- GL Lib: /usr/lib/
-- GL Include: /usr/include
-- Adding local GLU
-- Revised GL Lib: GLU_static/
-- Found wxWidgets...
-- wxWidgets Libraries: -L/usr/
-- Revised wxWidgets Libraries: -L/usr/
--
-- *** Staging to build opencpn ***
-- Build type: Release
-- *** Will install to /usr/local ***
-- Crash reporting enabled
-- Using Linux crash reporting
-- Found Portaudio: /usr/lib/
-- Portaudio Found
-- wxCurl configured...
-- SVG support enabled...
-- Found CAIRO: /usr/include/cairo
-- Could NOT find CAIRO_EXTRAS (missing: PANGOCAIRO_LIBRARY PANGOFT2_LIBRARY PANGOXFT_LIBRARY GDK_PIXBUF_LIBRARY)
-- Some or all of the gtk libraries were not found. (missing: GTK2_GTK_LIBRARY GTK2_GTK_
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'gtk+-3.0'
-- package 'gtk+-3.0' not found
-- Could NOT find GTK3 (missing: GTK3_INCLUDE_DIRS GTK3_LIBRARIES)
-- Building against GTK3...
-- Found EXPAT: /usr/lib/
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.4")
CMake Error at /usr/share/
Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.
-- Configuring incomplete, errors occurred!
See also "/home/
john@john-
Revision history for this message
|
#14 |
Mark ran your long command and it seems to be compiling.
Have got to the sudo chekinstall stage
Revision history for this message
|
#15 |
Good to read. The procedure worked for me, so it had to work for you eventually as well. The only difference is that most of these dependencies were already installed on my PC. It's because I do a lot of this type of troubleshooting for other packages and the dependencies overlap with that of other projects. :-)
Revision history for this message
|
#16 |
I see that I helped you with a similar type of issue with glabels in 2013. How time flies....
Revision history for this message
|
#17 |
Actually I think you also helped me with my laptop's camera some time ago as well.
How do I get opencpn to launch from Dash?
Revision history for this message
|
#18 |
Using the last command in the mark911 procedue:
/usr/local/
Revision history for this message
|
#19 |
I may have misunderstood your last question.
Maybe you are asking how to create a launcher pointing to /usr/local/
Maybe these links will help:
https:/
http://
I never use Unity or Dash, so I cannot give expert advice about it....
Revision history for this message
|
#20 |
I use the LXQt desktop instead.....
Revision history for this message
|
#21 |
Mark once again thank you for your help.
Have just installed OpenCPN on my laptop that I take on the boat.
I used the Mark 911 article that you told me about in your first reply with this link https:/
What I had failed to notice that the third line sudo apt-get install to libcairo2-dev and the fourth line sudo apt-get install to checkinstall build-essential.
This time I noticed the scroll bar and captured the whole line and things went well although I had to install checkinstall build-essential manually.
Telling you this so you can have confidence in the Mark 911 procedure
Revision history for this message
|
#22 |
Mark911 and me are the same person, if you did not notice yet. Mark911 is just my website nickname.