Tiny Core Linux
		General TC => General TC Talk => Topic started by: remus on October 25, 2018, 12:16:19 AM
		
			
			- 
				Hi all,
 
 I'm having a bit of trouble with sendEmail.tcz
 
 I"ve just installed it, and perl5 dependency ok.
 
 I have sendEmail + sendEmail.pl in /usr/local/bin dir
 Which are lnks to /tmp/tcloop/sendEmail/usr/local/bin
 
 Anyway..
 When I run sendEmail or sendEmail.pl or ./sendEmail.pl I get following error.
 
 -sh: .sendEmail: not found 
 I don't remember having this much trouble in the past with this script :)
 
 All coments and suggestions welcome.
 
 
- 
				From the directory sendEmail.pl is in, what does perl -v return?
			
- 
				/usr/local/bin$ perl -v
 
 This is perl 5, version 26, subversion 1 (v5.26.1) built for i486-linux-thread-multi
 
 Copyright 1987-2017, Larry Wall
 
 Perl may be copied only under the terms of either the Artistic License or the
 GNU General Public License, which may be found in the Perl 5 source kit.
 
 Complete documentation for Perl, including FAQ lists, should be found on
 this system using "man perl" or "perldoc perl".  If you have access to the
 Internet, point your browser at http://www.perl.org/, the Perl Home Page.
- 
				Hi remus
 Maybe the install script that was removed from  perl5  is causing a problem? It looked like this:
 tc@box:~$ cat /usr/local/tce.installed/perl5
 #!/bin/sh
 
 ln -s /usr/local/bin/perl /usr/bin
 tc@box:~$
- 
				Hi remus
 Maybe the install script that was removed from  perl5  is causing a problem? It looked like this:
 tc@box:~$ cat /usr/local/tce.installed/perl5
 #!/bin/sh
 
 ln -s /usr/local/bin/perl /usr/bin
 tc@box:~$
 
 Thanks for the input Rich.
 
 My /usr/local/tce.installed/perl5 file is blank
 tc@mc9vm:~$ cat /usr/local/tce.installed/perl5
 tc@mc9vm:~$
 I've addedln -s /usr/local/bin/perl /usr/binto my bootlocal.sh file as a long term fix
 
 sendEmail is working now.
 
 Perhaps the perl5 package needs an update ? Or is this particular pathing requirment unique to sendEmail ?
 
 Thanks again for your help Rich :)
 
 
- 
				Hi remus
  ... Perhaps the perl5 package needs an update ? Or is this particular pathing requirment unique to sendEmail ? ...  TC4 had the startup script and TC9 lost it. If you look at the change log in the TC9 version:
 Change-log:     2009/01/11 first version
 2009/05/18 re-compiled for tc_2.x, edited Makefile and config.sh for tc cflags/cppflags
 2009/10/02 updated 5.10.0 -> 5.10.1, re-compiled with static libperl without threads
 2011/09/30 updated 5.10.1 -> 5.14.1
 2013/03/23 updated 5.14.1 -> 5.16.3
 2014/07/02 addded symlink /usr/bin/perl
 2014/09/18 updated 5.16.3 -> 5.20.0
 2014/11/27 added /usr/bin/perl symlink
 2015/10/02 updated 5.20.0 -> 5.22.0
 2016/10/20 updated 5.22.0 -> 5.24.0
 Current:        2017/12/09 updated 5.24.0 -> 5.26.1
 you'll note it was added back in a couple of times.
 
- 
				Are you saying this is a patch normally done at the OS level ?
 
 
- 
				Hi remus
  ... Or is this particular pathing requirment unique to sendEmail ? ...  My guess is that  sendEmail  has  /usr/bin/perl  hardcoded somewhere in it.
 
 Are you saying this is a patch normally done at the OS level ? Not necessarily. I will say that either
 A. Extensions should not hardcode paths to system executables (preferable).
 or
 B. The perl extension should create the symlink to accommodate those hardcoded paths.
 
- 
				Thanks for clarifying that.
 Seems like sendMail needs an alternation.
- 
				Hi remus
  ... Seems like sendMail needs an alternation. ...  Then you're in luck. The info file lists you as the maintainer. ;D
 
- 
				Yeah the recommended shebang is "#!/usr/bin/env perl" which doesn't care where perl is.