Re: Compiling Openconnect on CentOS AWS EC2 instance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello David

Update just in case someone else is trying the same thing:

I tried to install it using EPEL, but after 'installing' EPEL, 'sudo yum install openconnect' fails with the following error:

--> Finished Dependency Resolution
Error: Package: openconnect-7.07-2.el6.x86_64 (epel)
           Requires: libpcsclite.so.1()(64bit)

And this seems to have to do with the fact that they removed the pcsc-lite package from Amazon Linux as it "was not relevant to AWS"
(cfr. https://forums.aws.amazon.com/thread.jspa?messageID=772449). So there seems to be an open feature request to bring it back, but I don't think they did that already, hence the error. (Also, I read somewhere that Amazon Linux has drifted quite far away from what it was orinigally based on, that many people are experiencing trouble installing EPEL stuff on Amazon Linux.)

But I managed to finish compiling it locally. Unlike what was mentioned on the website, I also needed to do 
sudo yum install libxml2-devel

And after that, I could successfully run
  ./configure --with-vpnc-script=/etc/vpnc/vpnc-script --disable-nls
  make
  make install


The next step will be trying to set up a connection...


Thanks for the help.


Van: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Verzonden: dinsdag 26 maart 2019 22:05
Aan: Frederik Tilkin
CC: openconnect-devel@xxxxxxxxxxxxxxxxxxx
Onderwerp: Re: Compiling Openconnect on CentOS AWS EC2 instance
 

> Hello
>
> some of our developers are using Cloud9 (online IDE, running on an AWS EC2
> instance) for development.
> We needed to have VPN access working from one of these development
> machines, and since everything related to Junos/Juniper seemed badly
> supported  I stumbled upon OpenConnect.
>
> I am currently trying to compile it over there (I didn't find any packages
> for CentOS).
>
> I followed the guide, downloaded the latest tag I could find from git
> (6487ee8763e1b6345718684909aca970befbc49d.tar.gz), unzipped it, downloaded
> vpnc-script and put it under /etc/vpnc, made root the owner and made it
> executable.
> Then I installed the mentioned dependencies ('sudo yum install libxml2'
> etc.).
> Then I ran ./configure --with-vpnc-script=/etc/vpnc/vpnc-script
>
> And then I got stuck, first thing I could resolve (by following the
> suggested "msgfmt could not be found. Try configuring with
> --disable-nls").
>
> The next error I encounter is:
> --------
> configure: error: Package requirements (libxml-2.0) were not met:
>
> No package 'libxml-2.0' found
>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
>
> Alternatively, you may set the environment variables LIBXML2_CFLAGS
> and LIBXML2_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> --------
>
> So, what would be the best option to fix this error? Set the mentioned
> LIBXML2* environment variables? But then my question would be: to which
> values?
>
> Thanks
> Frederik
>
> _______________________________________________
> openconnect-devel mailing list
> openconnect-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/openconnect-devel
>

Packages do exist. Try EPEL. But if you want to build against libraries
you need to install e.g. libxml-devel. Or 'pkgconfig(limxml-2.0)' etc.

--
dwmw2


_______________________________________________
openconnect-devel mailing list
openconnect-devel@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/openconnect-devel




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux