Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Io(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }) #1

Open
sysmat opened this issue Nov 30, 2024 · 0 comments

Comments

@sysmat
Copy link

sysmat commented Nov 30, 2024

  • I install cargo install cargo-make-rpm
  • In my project I try cargo-make-rpm and got error
 cargo-make-rpm
warning: You are creating for your current OS, not for Linux. Use --target to cross compile for a Linux target.
    Finished `release` profile [optimized] target(s) in 0.34s
Error: Io(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." })
  • my toml
[package]
description = "generate apache virtual host for users with static pages"
edition = "2021"
license = "MIT OR Apache-2.0"
name = "users_apache_virtual_host"
version = "0.1.0"

[profile.release]
codegen-units = 1
lto = true
#opt-level = 3
opt-level = "z" # for small size

[dependencies]
askama = "0.12" # template like ninja
async-trait = "0.1" 
http = "1.1" 
reqwest = {version = "0.12", features = ["json"]} 
serde = {version = "1.0", features = ["derive"]} 
serde_json = "1.0" 
tokio = {version = "1.41", features = ["macros", "rt-multi-thread"]} 

[package.metadata.rpm]
assets = [
  #["README.md", "/usr/share/doc/README.md", "644"],
]
compression = "none"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant