WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to install SHC (shell script compiler)  (Read 113 times)

Offline malikawan

  • Full Member
  • ***
  • Posts: 235
    • Learn Linux
How to install SHC (shell script compiler)
« on: October 10, 2017, 01:47:13 AM »
I have compile shc with out any error  :D but when i convert my shell script with shc to binary it gives me error xxx.sh.x: applet not found  :-[
Please any idea about that.

Thanks
Regards
Malik Awan
« Last Edit: October 10, 2017, 01:52:45 AM by malikawan »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 9550
Re: How to install SHC (shell script compiler)
« Reply #1 on: October 10, 2017, 02:11:11 AM »
what does "ldd yourshellscriptbinary" give?

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5430
Re: How to install SHC (shell script compiler)
« Reply #2 on: October 10, 2017, 06:20:41 AM »
Hi malikawan
... it gives me error xxx.sh.x: applet not found ...
You're not clear if the error occurs while converting your script or if it occurs when running the executable that was created.

sch  requires a compiler in order to run, so  compiletc.tcz  should be installed.

The output from  shc  is not an independent binary. It still relies on the shell scripting language specified on the first line
of your script. So if the first line of your script reads:
Code: [Select]
#!/bin/bashthen your executable will expect to find  /bin/bash.