AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1145642
Accepted
tatsu
tatsu
Asked: 2019-05-24 05:00:21 +0800 CST2019-05-24 05:00:21 +0800 CST 2019-05-24 05:00:21 +0800 CST

在 Ubuntu 19.04 中构建介子期间未找到手动安装的 exiv

  • 772

任何人都可以解释以下内容吗?

user@system:~/gexiv2-0.11.0/build$ exiv2 --version

exiv2 0.27.1

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA


user@system:~/gexiv2-0.11.0/build$ meson --prefix=/usr ..

The Meson build system
Version: 0.49.0
Source dir: /home/user/gexiv2-0.11.0
Build dir: /home/user/gexiv2-0.11.0/build
Build type: native build
Project name: gexiv2
Project version: 0.11.0
Native C compiler: cc (gcc 8.3.0 "cc (Ubuntu 8.3.0-6ubuntu1) 8.3.0")
Native C++ compiler: c++ (gcc 8.3.0 "c++ (Ubuntu 8.3.0-6ubuntu1) 8.3.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Found CMake: /usr/bin/cmake (3.13.4)
Dependency exiv2 found: NO (tried pkgconfig)

meson.build:13:0: ERROR:  Dependency "exiv2" not found, tried pkgconfig

A full log can be found at /home/user/gexiv2-0.11.0/build/meson-logs/meson-log.txt

鉴于一般 Ubuntu 不存在 exiv2 版本 0.27 (它停在v0.25)。

我做了以下事情:

  1. 我去了exiv网站
  2. 我抓住了 exiv 0.27 的 linux 版本的链接
  3. 我跑了以下

    wget https://www.exiv2.org/builds/exiv2-0.27.1-Linux64.tar.gz
    sudo tar xzf exiv2-0.27.1-Linux64.tar.gz -C /usr/local/lib/
    sudo nano /etc/environment
    
  4. 添加:/usr/local/lib/exiv2-0.27.1-Linux64/bin

  5. source /etc/environment
  6. 重新启动终端。

然后 exiv 可以正确使用。

但是介子在构建过程中没有检测到它的存在。

需要明确的是:为 Ubuntu 19.04 提供的 gexiv2 版本0.10.9至少不如我需要的 0.11.0 版本。

software-installation compiling dependencies
  • 1 1 个回答
  • 635 Views

1 个回答

  • Voted
  1. Best Answer
    N0rbert
    2019-05-24T05:02:45+08:002019-05-24T05:02:45+08:00

    我发现出了什么问题——你已经下载了 Exiv2 的二进制版本,但实际上你需要带有相应头文件和开发文件的源版本。

    所以完整的步骤如下:

    exiv2部分

    sudo apt-get install cmake meson
    sudo apt-get build-dep exiv2
    
    cd ~/Downloads
    wget https://www.exiv2.org/builds/exiv2-0.27.1-Source.tar.gz
    tar -xf exiv2-0.27.1-Source.tar.gz
    cd exiv2-0.27.1-Source/
    cmake .
    make
    sudo make install
    

    查看:

    $ exiv2 --version | head -n1
    exiv2 0.27.1
    

    gexiv2 部分

    sudo apt-get build-dep libgexiv2-dev
    cd ~/Downloads
    wget http://ftp.gnome.org/pub/GNOME/sources/gexiv2/0.11/gexiv2-0.11.0.tar.xz
    tar -xf gexiv2-0.11.0.tar.xz
    cd gexiv2-0.11.0/
    meson build
    cd build
    sudo meson install
    

    等等。

    • 1

相关问题

  • 如何在没有 root 访问权限的情况下安装软件包?

  • 设置 LAMP 堆栈的最简单方法是什么?

  • 我应该在哪里安装 sagemath?

  • How do I install Adobe Flash player?对于 11.10 及更高版本明确修复 11.10 上的 64 位 Flash

  • 如何设置软件中心为非 root 用户安装软件?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve