General TC > General TC Talk

perl script on mc9

(1/3) > >>

remus:
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.


--- Quote ----sh: .sendEmail: not found
--- End quote ---

I don't remember having this much trouble in the past with this script :)

All coments and suggestions welcome.

NewUser:
From the directory sendEmail.pl is in, what does perl -v return?

remus:
/usr/local/bin$ perl -v


--- Code: ---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.
--- End code ---

Rich:
Hi remus
Maybe the install script that was removed from  perl5  is causing a problem? It looked like this:

--- Code: ---tc@box:~$ cat /usr/local/tce.installed/perl5
#!/bin/sh

ln -s /usr/local/bin/perl /usr/bin
tc@box:~$
--- End code ---

remus:

--- Quote from: Rich on October 25, 2018, 05:19:11 AM ---Hi remus
Maybe the install script that was removed from  perl5  is causing a problem? It looked like this:

--- Code: ---tc@box:~$ cat /usr/local/tce.installed/perl5
#!/bin/sh

ln -s /usr/local/bin/perl /usr/bin
tc@box:~$
--- End code ---

--- End quote ---

Thanks for the input Rich.

My /usr/local/tce.installed/perl5 file is blank

--- Code: ---tc@mc9vm:~$ cat /usr/local/tce.installed/perl5
tc@mc9vm:~$
--- End code ---

I've added
--- Code: ---ln -s /usr/local/bin/perl /usr/bin
--- End code ---
to 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 :)

Navigation

[0] Message Index

[#] Next page

Go to full version