It's a GitHub repo. I downloaded its source code and modified it. I know how to static compile it with cmake. but when I copy executable file to my another ubuntu machine and run it gives an error.

I know it is because of missing libraries or files. So I need a way to pack all the lib files inside one executable file so that I can use it easily next time without compiling in all my Ubuntu machines

Repo link: https://github.com/xmrig/xmrig/archive/v2.9.3.tar.gz

Please Help me and sorry for my bad English

  • It sounds like you want to package a binary into a .deb file: eg king-foo.com/2011/11/creating-debianubuntu-deb-packages. – pbhj Jan 18 at 12:36
  • Yes, you are right, but can you give more details about how to do it with above Repo? with xmrig. its written in C++ – Eli Shain Jan 18 at 12:39
  • Maybe a dupe of askubuntu.com/questions/171796/… – pbhj Jan 18 at 12:40
  • Can I use Windows OS to Pack .deb? – Eli Shain Jan 18 at 14:32
  • Do you realise @Eli Shain that xmrig has "tarballs" pre-compiled and ready to use for Ubuntu? You download from the github, untar tar xvzf xmrig-2.9.4-xenial-x64.tar.gz and then you'll have a folder, cd in to that and run the binary. Warning: doing this is running random binaries on your own machine, worth virus checking; don't run if you don't trust the source. – pbhj Jan 19 at 20:33

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.