Coder Social home page Coder Social logo

Comments (3)

jeking3 avatar jeking3 commented on August 16, 2024

I found I had to set auto-req = "no" and provide my own dependencies to work around this.

from cargo-generate-rpm.

cat-in-136 avatar cat-in-136 commented on August 16, 2024

@jeking3 as you mentions, workaround is to disable the automatic dependency process with setting auto-req = "no".

If /usr/lib/rpm/find-requires (rpm builtin program) does not exist on your system, cargo-generate-rpm executes ldd and parses its output. So, could you please share the output of ldd release/release/cloudtruth?

from cargo-generate-rpm.

jeking3 avatar jeking3 commented on August 16, 2024

I'll close this out because it appears to be working now.

I should mention I run this in the rust:1.52.1-alpine container (to make the RPM), so perhaps that's part of the problem:

On alpine:

bash-5.1$ ldd !$
ldd target/release/cloudtruth
        /lib/ld-musl-x86_64.so.1 (0x7f6ed8af3000)
        libssl.so.1.1 => /lib/libssl.so.1.1 (0x7f6ed8387000)
        libcrypto.so.1.1 => /lib/libcrypto.so.1.1 (0x7f6ed8106000)
        libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f6ed8af3000)

bash-5.1$ cargo-generate-rpm
/lib/ld-musl-x86_64.so.1: cannot load -v: No such file or directory

Then on centos 8:

[root@a680fea297fb cli]# rpm -q --requires target/generate-rpm/cloudtruth-0.5.4-1.x86_64.rpm
rtld(GNU_HASH)
/bin/sh

[root@92a65b653b44 /]# rpm -i /cli/target/generate-rpm/cloudtruth-0.5.4-1.x86_64.rpm
[root@92a65b653b44 /]# cloudtruth --version
cloudtruth 0.5.4
[root@92a65b653b44 /]#

The -v error is odd, but what's coming out now seems to be working. I tested with v0.4.0 of cargo-generate-rpm.

from cargo-generate-rpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.