WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: depfinder: script to find dependencies  (Read 9736 times)

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: depfinder: script to find dependencies
« Reply #15 on: June 26, 2018, 10:16:29 PM »
Hi Rich,
Yes, I have installed bash.tcz. Still same errors are there.
Code: [Select]
./dependencie_finder2_V0.1c.sh: line 72: declare: not found
./dependencie_finder2_V0.1c.sh: line 73: declare: not found
./dependencie_finder2_V0.1c.sh: line 75: syntax error: unexpected "("

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: depfinder: script to find dependencies
« Reply #16 on: June 26, 2018, 10:39:31 PM »
Hi ipmeel
Based on those errors it sounds like either  bash.tcz  is not loaded or it's not being found. Do you get a response for:
Code: [Select]
which bash

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: depfinder: script to find dependencies
« Reply #17 on: June 26, 2018, 10:53:40 PM »
Hi Rich,
the output of 'which bash'
Code: [Select]
/usr/local/bin/bash

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: depfinder: script to find dependencies
« Reply #18 on: June 26, 2018, 11:11:27 PM »
Hi Rich,
It was my mistake. Now made the file executable...
Code: [Select]
$ sudo chmod +x dependencie_finder2_V0.1c.sh
Now script is executing with message
Code: [Select]
---------
- Done! -
---------
but nothing is downloaded!

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: depfinder: script to find dependencies
« Reply #19 on: June 26, 2018, 11:19:33 PM »
Hi Rich,
Now it is working well, thanks! The extension .tcz should not be used in command line.
So, I changed the command from...
Code: [Select]
tc@box:/home/tc# sh ./dependencie_finder2_V0.1c.sh -d openjdk-8-jdk/ -e openjdk-8-jdk.tcz
to
Code: [Select]
tc@box:/home/tc# sh ./dependencie_finder2_V0.1c.sh -d openjdk-8-jdk/ -e openjdk-8-jdk