sendEmail报错:at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm

sendEmail发邮件的时候,出现的报错,然后查阅了很多资料

http://caspian.dotconf.net/menu/Software/SendEmail/

上找到了 下面这段话

Q: I get the error "invalid SSL_version specified at /System/Library/Perl/Extras/5.16/IO/Socket/SSL.pm line 332.a on my Apple. What do I do?
A: Here‘s what I got from one user. It‘s a workaround until I put a real fix in:
> Fixed it by using Perl v5.12 that‘s still on OSX Mavericks. > (just changed sendEmail line 1 from #!/usr/bin/perl -w to #!/usr/bin/perl5.12 -w)

centos7.2默认是 perl的版本是5.16,centos6.5的是5.10,后来把7的版本换成5.10,就可以正常发邮件了。


1

2

3

4

5

6

7

8

9

10

11

12

#### perl安装

     wget http://www.cpan.org/src/5.0/perl-5.10.0.tar.gz

     tar -zxf perl-5.10.0.tar.gz

     cd perl-5.22.0

     ./configure.gnu -des -Dprefix=/usr/local/perl

     echo $?

     make

     make test

     make install

     mv /usr/bin/perl /usr/bin/perl.bak

     ln -s /usr/local/perl/bin/perl /usr/bin/perl

     perl -v

本文出自 “何全” 博客,请务必保留此出处http://hequan.blog.51cto.com/5701886/1811246

时间: 2024-08-09 04:39:03

sendEmail报错:at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm的相关文章

mha安装报错 [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln361] None of slaves can be master. Check failover configuration file or log-bin settings in my.cnf

查找资料 参考 http://blog.51cto.com/16769017/1878451 解决方法: 在两个从库上开启二进制日志即可(花了 一天时间,找不到解决方法,最后还是靠自己的理解及测试解决的,骄傲!!)具体配置不在贴上来了.   实际配置: mysql master 上: cat /etc/my.cnf log-bin=weifeng1 server_id = 81 socket = /tmp/mysql.sock binlog-do-db = db1 slave 01 上面: ca

mysql报错:/usr/sbin/mysqld:unknown variable 'default-character-set=utf8'

修改mysql的字符集时,为了将默认字符集设置为utf-8,便将/etc/my.cnf下[mysqld]加了一行 default-character-set=utf8, 但是在下次启动系统的时候,mysql登录不上,报错Can't connect to local MySQL serverthrough socket '/var/lib/mysql/mysql.sock'(2), 这时通过命令查找mysql.sock #find / -name mysql.sock , 没有查找到文件,mysq

树莓派(Raspberry Pi 3) centos7使用yum命令报错File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:

使用yum命令报错 File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: ^SyntaxError: invalid syntax 问题如下:  问题出现原因: yum包管理是使用python2.x写的,将python2.x升级到python3.x以后,由于python版本语法兼容性导致问题出现 解决办法: 修改yum配置文件,将python版本指向以前的旧版本 # vi /usr/bin/yum #!/usr/bin/py

./redis-trib.rb 报错:/usr/local/rvm/gems/ruby-2.4.2/gems/redis-4.0.1/lib/redis/client.rb:119:in `call': ERR Slot 0 is already busy (Redis::CommandError)

错误提示是 slot插槽被占用了(这是 搭建集群前时,以前redis的旧数据和配置信息没有清理干净.) 解决方案是 用redis-cli 登录到每个节点执行  flushall  和 cluster reset  就可以了. 然后重新执行群集脚本命令: ./redis-trib.rb create --replicas 1 192.168.*.*:7001 192.168.*.*:7002 192.168.*.*:7003 192.168.*.*:7004 192.168.*.*:7005  1

cpan安装报错Invalid host name on line 1 at *FirstTime.pm line 1857.

今天鼓捣一下CPAN,安装时出错: [email protected]:~# cpan install DBI CPAN.pm requires configuration, but most of it can be done automatically.If you answer 'no' below, you will enter an interactive dialog for eachconfiguration option instead. Would you like to co

使用yum命令报错File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:

背景: yum包的管理是使用python写的,有对应的python版本 遇到的问题报错如下: File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: 通过看报错可以了解到是使用了python2的语法,所以了解到当前yum使用的Python2,因为我单独安装了python3,且python3设置为默认版本了,所以导致语法问题 解决方法: 使用python2.6 yum install xxx来使用yum命令 注意:python2

使用yum命令报错File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: SyntaxError: invalid syntax问题

背景: CentOS 7升级Python到3.6.2后,需要在/usr/bin/python创建了一个指向Python 3的软连接,然后将/usr/bin/yum的顶部的: !/usr/bin/python 遇到的问题报错如下: File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: 通过看报错可以了解到是使用了python2的语法,所以了解到当前yum使用的Python2,因为我单独安装了python3,且python3设置

故障小记录:yum 安装报错File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:

发生原因: 由于yum是基于python的,之前安装我python3,当我修改了python命令的指向到python3之后就会发生这样的问题. 解决办法: 由于我当初想到可能以后还需要python2,所以还保留着python2的命令指向 所以只需要 vim /usr/bin/yum 然后在头部改一下编译方式就好[是改成你的python2的命令,有些人的命令是python2.7之类的] 由#!  /usr/bin/python 改为#! /usr/bin/python2 另外还需要改一个地方,否则

appium===报错Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.settings without first uninstalling.的解决办法

要解决的问题:appium在androidV7.0系统上运行时报错 Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.settings without first uninstalling.] 原因分析:appium的uiautomator版本与androidV7.0不适配. 预置条件:手机端已经安装完Appium Settings 和 Unlock两个应用 解决步骤:1.修改源码文件-注释安装appi