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

tedge-mapper is not found after successful build under target/debug/ folder #3261

Open
AjayItHub opened this issue Nov 22, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation theme:installation

Comments

@AjayItHub
Copy link

Built 1.3.1 source code as mentioned in build document available at https://thin-edge.github.io/thin-edge.io/contribute/build/

As per document, after successful build, running ls -l target/debug/ should list tedge-mapper, but it does not show any longer

I pulled 0.9.0 source code, and repeated same steps mentioned in build document, and shows tedge-mapper. So, something changed and does not reflect with latest release (1.3.1)

@AjayItHub AjayItHub added the documentation Improvements or additions to documentation label Nov 22, 2024
@didier-wenzek
Copy link
Contributor

didier-wenzek commented Nov 22, 2024

Indeed, since version 0.13, thin-edge is packaged as a multi-call binary, meaning that the tedge executable wraps in one file the tedge cli with tedge-agent and tedge-mapper.

To get a working mapper you have to create a symlink.

$ cargo build
$ ls target/debug/tedge-mapper   
zsh: no such file or directory: target/debug/tedge-mapper

$ ln -s tedge target/debug/tedge-mapper
$ target/debug/tedge-mapper            
tedge-mapper is the mapper that translates thin-edge.io data model to c8y/az data model.
...

That said, you are correct: the documentation is outdated and needs to be fixed.

@AjayItHub
Copy link
Author

Thank you so much @didier-wenzek for quick response, and guidance. Appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation theme:installation
Projects
None yet
Development

No branches or pull requests

2 participants