Hi Bruno, something weird is happening.

Amazon Linux 2 by default comes with python2 & python3 installed and their
executables are  inside /usr/bin
[image: image.png]


If I execute "ipsec verify" inside this PATH: "/usr/bin" , ipsec command
works perfectly.
[image: image.png]
But if I execute  "ipsec verify" in another PATH that is not inside
"/usr/bin", the bad interpreter comes out:
[image: image.png]

Also check the path for command python and python2:
[image: image.png]

[image: image.png]

I also tried to install another version of LibreSwan, 3.32, 4.1 and 4.2,
Version 3.32 and 4.1 worked super but versions 4.2 and 4.4 have this issue.

How can this be fixed?

Regards,

Rodolfo





On Wed, May 12, 2021 at 7:08 PM Bruno <br.lar...@gmail.com> wrote:

> If python 2.7 is installed, check if it exists in /usr/bin. On EL7 maybe
> it's named just 'python', so create a symbolic link to it named 'python2'.
>
>
> Em qua, 12 de mai de 2021 21:29, Jorge Sevillanos <rsevilla...@gmail.com>
> escreveu:
>
>> Hi Libreswan, just installed Amazon Linux 2 (fresh) from default ami,
>> nftables  nftables v0.9.0 (Fearless Fosdick) and libreswan  4.4-1.el7_9
>>
>> I downloaded rpm package form:
>> https://download.libreswan.org/binaries/rhel/7/x86_64/libreswan-4.4-1.el7_9.x86_64.rpm
>>
>> And installed package: yum install
>> https://download.libreswan.org/binaries/rhel/7/x86_64/libreswan-4.4-1.el7_9.x86_64.rpm
>>
>> I run the command "ipsec verify" and shows me the following:
>>
>> [root@ip-10-10-2-15 sysctl.d]# ipsec verify
>> /sbin/ipsec: /usr/libexec/ipsec/verify: python2: bad interpreter: No such
>> file or directory
>> /sbin/ipsec: line 565: /usr/libexec/ipsec/verify: Success
>>
>> Please help.
>>
>> Regards,
>>
>> Rodolfo Sevillanos
>> _______________________________________________
>> Swan mailing list
>> Swan@lists.libreswan.org
>> https://lists.libreswan.org/mailman/listinfo/swan
>>
>
_______________________________________________
Swan mailing list
Swan@lists.libreswan.org
https://lists.libreswan.org/mailman/listinfo/swan

Reply via email to