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

ascli package relocability #151

Open
snps-djigande opened this issue Aug 13, 2024 · 3 comments
Open

ascli package relocability #151

snps-djigande opened this issue Aug 13, 2024 · 3 comments
Assignees
Labels
customer request Request from end users

Comments

@snps-djigande
Copy link

snps-djigande commented Aug 13, 2024

Hi,
I could use ascli to upload and download.
One limitation of ascli is that the package is full of harcoded path.
Even .so files contains hard coded path making ascli not relocatable meaning I can not move the complete package somewhere else and use it.

Would it be possible to make ascli relocatable meaning: be able to move the built package somewhere and use it from there?

I heard about using rubyc to create an executable out of the ascli package. Would you please write all the steps in details needed to:

  1. get rubyc,
  2. get ascli/gems,ruby
  3. create an executable from the ascli package

Thanks

Kola

@laurent-martin
Copy link
Member

Maybe good to look at:

https://github.com/tamatebako/tebako

@snps-djigande
Copy link
Author

snps-djigande commented Aug 15, 2024

Hi Laurent,

I installed tebako and want to use it to create an aspera cli executable out of my rvm, ruby ascli installation in $HOME/.rvm.
I do have the following questions:

How does a minimal entry-point I can use for the -entry-point option look like?
What is the value for 'project-root-folder' given my rvm, ruby and tebako dinstallation struture is:

.rvm/gems/ruby-3.0.7/bin/tebako?

Is running on Ubuntu 20 mandatory?

I tried:
$HOME/.rvm/gems/ruby-3.0.7/bin/tebako press -r $HOME/.rvm --entry-point start.rb (new file) and got the following error

[100%] Built target gflags_static
gcc: warning: linux: linker input file unused because linking not done
gcc: error: linux: linker input file not found: No such file or directory
make[8]: *** [Makefile:98: liblz4.a] Error 1
make[7]: *** [Makefile:57: lib-release] Error 2
gmake[6]: *** [CMakeFiles/_lz4.dir/build.make:86: $HOME/.tebako/deps/src/_dwarfs_wr/deps/src/_lz4-stamp/_lz4-build] Error 2
gmake[5]: *** [CMakeFiles/Makefile2:286: CMakeFiles/_lz4.dir/all] Error 2
gmake[5]: *** Waiting for unfinished jobs....

[ 61%] Completed '_zstd'
[ 61%] Built target _zstd
gmake[4]: *** [all] Error 2
gmake[3]: *** [$HOME/.tebako/deps/src/_dwarfs_wr-stamp/_dwarfs_wr-build] Error 2
gmake[2]: *** [CMakeFiles/_dwarfs_wr.dir/all] Error 2
gmake[1]: *** [CMakeFiles/tebako.dir/rule] Error 2
gmake: *** [tebako] Error 2
Tebako script failed: 'tebako press' build step failed [104]

Thanks

@laurent-martin laurent-martin added the customer request Request from end users label Aug 19, 2024
@laurent-martin
Copy link
Member

Now I recommend using tebako to create single exec.

here an example generated:

https://eudemo.asperademo.com/download/ascli-20240903.Linux-x86_64

I'll remove rubyc and use tebako from now.

Generated with:

podman run -it --rm -v $PWD:/mnt/w ghcr.io/tamatebako/tebako-ubuntu-20.04:0.8.6 tebako press --root=/mnt/w --entry-point=ascli --output=/mnt/w/ascli.exe --Ruby=3.2.4 --patchelf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer request Request from end users
Projects
None yet
Development

No branches or pull requests

2 participants