EPrints Technical Mailing List Archive

Message: #09414


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

RE: [EP-tech] Migrating to Redhat Linux 8.6


CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Thank you for your support.

 

Using cpan or cpanm both give the same error.

 

This is the build.log content:

 

cpanm (App::cpanminus) 1.7047 on perl 5.026003 built for x86_64-linux-thread-multi

Work directory is /root/.cpanm/work/1695298606.126263

You have make /bin/make

You have LWP 6.34

You have /bin/tar: tar (GNU tar) 1.30

Copyright (C) 2017 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

 

Written by John Gilmore and Jay Fenlason.

You have /bin/unzip

Searching XML::LibXSLT () on cpanmetadb ...

--> Working on XML::LibXSLT

Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXSLT-2.002001.tar.gz

-> OK

Unpacking XML-LibXSLT-2.002001.tar.gz

Entering XML-LibXSLT-2.002001

Checking configure dependencies from META.json

Checking if you have warnings 0 ... Yes (1.37)

Checking if you have File::Path 2.06 ... Yes (2.15)

Checking if you have strict 0 ... Yes (1.11)

Configuring XML-LibXSLT-2.002001

Running Makefile.PL

running pkg-config libxslt... ok

looking for -lxslt... no

libxslt not found

Try setting LIBS and INC values on the command line

Or get libxslt and libxml2 from

  http://www.libxml.org/

If you install via RPMs, make sure you also install the -devel

RPMs, as this is where the headers (.h files) are.

-> N/A

-> FAIL Configure failed for XML-LibXSLT-2.002001. See /root/.cpanm/work/1695298606.126263/build.log for details.

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Andrew Mehta
Sent: Thursday, September 21, 2023 6:49 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

Yes, that's understandable - I'd follow the instructions too, as you wouldn't want to encounter problems later, and it should be possible to get the cpan install to work. Speaking of which, are you having any better luck with cpan XML: : LibXSLT

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

Yes, that's understandable - I'd follow the instructions too, as you wouldn't want to encounter problems later, and it should be possible to get the cpan install to work.

 

Speaking of which, are you having any better luck with

cpan XML::LibXSLT 

than you are with 

cpanm XML::LibXSLT

...?

 

Regarding your cpanm problems,

is there any further helpful info via:

nano ~/.cpanm/build.log

 

...?

 

Beyond that, because I'm new to EPrints, I may now be best deferring to more experienced colleagues, and other community members.

I don't know if the additional manual removal instructions on the wiki, to potentially be done before installing via CPAN, are of any help.

 

John's latest email may be onto something. I'll leave you with him.

 

 


From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Maher Abdellatif Ahmad Qahwash <qahwash@kfupm.edu.sa>
Sent: 21 September 2023 15:41
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

We are not sure if installing the perl-XML-LibXSLT using dnf will cause any segmentation faults with our Apache httpd webserver or not.  We are just following the recommendation in the documentation to install using CPAN.

 

Following is the cpanm –V output:

 

# ./cpanm -V

cpanm (App::cpanminus) version 1.7047 (./cpanm)

perl version 5.026003 (/usr/bin/perl)

 

  %Config:

    archname=x86_64-linux-thread-multi

    installsitelib=/usr/local/share/perl5

    installsitebin=/usr/local/bin

    installman1dir=/usr/share/man/man1

    installman3dir=/usr/share/man/man3

    sitearchexp=/usr/local/lib64/perl5

    sitelibexp=/usr/local/share/perl5

    vendorarch=/usr/lib64/perl5/vendor_perl

    vendorlibexp=/usr/share/perl5/vendor_perl

    archlibexp=/usr/lib64/perl5

    privlibexp=/usr/share/perl5

  %ENV:

  @INC:

    FatPacked::94715887577112=HASH(0x5624c2d56818)

    /usr/local/lib64/perl5

    /usr/local/share/perl5

    /usr/lib64/perl5/vendor_perl

    /usr/share/perl5/vendor_perl

    /usr/lib64/perl5

    /usr/share/perl5

 

 

This is the content of the file “XML-LibXSLT-2.002001-0.yml”

---

distribution: !!perl/hash:CPAN::Distribution

  CALLED_FOR: XML::LibXSLT

  CHECKSUM_STATUS: OK

  ID: S/SH/SHLOMIF/XML-LibXSLT-2.002001.tar.gz

  RO:

    CPAN_COMMENT: ~

    CPAN_USERID: SHLOMIF

  archived: tar

  build_dir: /root/.local/share/.cpan/build/XML-LibXSLT-2.002001-0

  incommandcolor: 1

  localfile: /root/.local/share/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXSLT-2.002001.tar.gz

  mandatory: 1

  negative_prefs_cache: 1

  prefs: {}

  reqtype: c

  unwrapped: !!perl/hash:CPAN::Distrostatus

    COMMANDID: 1

    FAILED: ''

    TEXT: YES

    TIME: 1695294479

  writemakefile: !!perl/hash:CPAN::Distrostatus

    COMMANDID: 1

    FAILED: 1

    TEXT: "NO -- No 'Makefile' created\n"

    TIME: 1695294480

perl:

  $^X: /usr/bin/perl

  mtime_$^X: 1673971108

  mtime_dll: 0

  sitearchexp: /usr/local/lib64/perl5

time: 1695294480

 

Thank you for your support.

Maher

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Andrew Mehta
Sent: Thursday, September 21, 2023 5:31 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

Is it a problem for your EPrints migration if perl-XML-LibXSLT is working fine for you? The CPAN install idea is only if you sometimes find the perl-XML-LibXSLT package causes segmentation faults with the Apache httpd webserver. You mention

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

Is it a problem for your EPrints migration if
perl-XML-LibXSLT

is working fine for you?

 

The CPAN install idea is only if you sometimes find the perl-XML-LibXSLT package causes segmentation faults with the Apache httpd webserver.


You mention you are using cpanm.
Is the following command...

cpanm -V 

...showing the correct installation locations?

 

Is any further info in build logs in your user's home directory's ".cpanm" folder?

 


From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Maher Abdellatif Ahmad Qahwash <qahwash@kfupm.edu.sa>
Sent: 21 September 2023 15:20
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Sorry the libxslt is a folder (not a file) and is located here:

/usr/include/libxslt

 

We also have the following libxslt files here:

/usr/lib64/libxslt.so.1.1.32

/usr/lib64/libxslt-plugins

/usr/lib64/libxslt.so.1

/usr/lib64/pkgconfig/libxslt.pc

/usr/lib64/libxslt.so

/usr/share/licenses/libxslt

 

 

The error appearing when trying to install using CPAN is this:

looking for -lxslt... no

libxslt not found

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 5:01 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Internal We installed from RPM dnf install perl-XML-LibXSLT which was successful and resolved any

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

We installed from RPM dnf install perl-XML-LibXSLT which was successful and resolved any dependencies.

Then we did a dnf remove perl-XML-LibXSLT and then a cpanm (Yes we are using cpanm) XML::LibXSLT but received the same error and the installation failed.

 

Could the issue be from the location of the libxslt file?

 

# which libxslt

/usr/bin/which: no libxslt in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

 

The libxslt file is located here:

/usr/include/libxslt

Thanks

Maher

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of John Salter
Sent: Thursday, September 21, 2023 4:49 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Apologies, that previous ‘which’ wasn’t too helpful :\ If you try installing from RPM: >dnf install

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Apologies, that previous ‘which’ wasn’t too helpful :\

If you try installing from RPM:

>dnf install perl-XML-LibXSLT

Does it work (and resolve dependencies)?

If so, you could then remove the RPM version:
>dnf remove perl-XML-LibXSLT --noautoremove


and then try installing the CPAN version again.

Another thing you could try is using ‘cpanm’ – an alternative to CPAN.

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 2:37 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

I’m using the root user for running the below command and for trying to install the CPAN module, this is the output:

 

# which libxslt

/usr/bin/which: no libxslt in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

 

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of John Salter
Sent: Thursday, September 21, 2023 4:33 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. If you run: > which libxslt As the same user you are trying to install the CPAN module with, does

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

If you run:
> which libxslt

As the same user you are trying to install the CPAN module with, does it return anything?

 

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 2:20 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Hi Martin

 

The packages libxslt-devel libxslt libxml2-devel libxml2 are only installed using dnf and are not installed again on the system using CPAN.  As for the XML::LibXSLT it is recommended in the documentation to install it using CPAN and not as an rpm using dnf.

 

Any ideas?

 

Thanks,

Maher

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Martin Brändle
Sent: Thursday, September 21, 2023 3:56 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Hi, if you have the rpms installed, you don’t need the CPAN package (you should remove it) – otherwise

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi,

 

if you have the rpms installed, you don’t need the CPAN package (you should remove it) – otherwise you may run into conflicts.

Kind regards,

 

Martin

 

--

Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Stampfenbachstr. 73
CH-8006 Zürich

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Maher Abdellatif Ahmad Qahwash <qahwash@kfupm.edu.sa>
Date: Thursday, 21 September 2023 at 14:52
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Thank you John and Andrew for your support.

 

Actually we already have all the mentioned packages installed as shown:

 

]# dnf install libxslt-devel libxslt libxml2-devel libxml2

Updating Subscription Management repositories.

 

Last metadata expiration check: 0:52:15 ago on Thu 21 Sep 2023 02:54:02 PM +03.

Package libxslt-devel-1.1.32-6.el8.x86_64 is already installed.

Package libxslt-1.1.32-6.el8.x86_64 is already installed.

Package libxml2-devel-2.9.7-16.el8.x86_64 is already installed.

Package libxml2-2.9.7-16.el8.x86_64 is already installed.

Dependencies resolved.

Nothing to do.

Complete!

 

Any other ideas?

 

Thanks,

Maher

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Andrew Mehta
Sent: Thursday, September 21, 2023 3:31 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

Discussing this with a colleague, who has a suspicion the devel packages may be needed too, and recommended a cover-all-bases approach of: dnf install libxslt-devel libxslt libxml2-devel libxml2 Yours, Andrew. From: eprints-tech-request@ ecs. soton. ac. uk

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

Discussing this with a colleague, who has a suspicion the devel packages may be needed too, and recommended a cover-all-bases approach of:

 

dnf install libxslt-devel libxslt libxml2-devel libxml2

 

Yours,

Andrew.

 

 


From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of John Salter <J.Salter@leeds.ac.uk>
Sent: 21 September 2023 13:25
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi Maher,

I don’t have a RHEL8 box nearby right now, but I’d check that the libxml2 and libxslt packages are installed on the server.

> dnf install libxml2 libxslt

 

These are requirements for the perl modules you are trying to add.

 

Cheers,

John

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 12:49 PM
To: 'eprints-tech@ecs.soton.ac.uk' <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Hi

 

We are in the progress of migrating our EPrints 3.4.1 system from Rehat Linux 7.6 server to a Redhat Linux 8.6 server.  We have successfully installed all of the required packages but are having issues installing the XML::LibXSLT package.  As recommended in the documentation this package should be installed using CPAN.  However using CPAN we are receiving the following error:

 

Searching XML::LibXSLT () on cpanmetadb ...

--> Working on XML::LibXSLT

Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXSLT-2.002001.tar.gz

-> OK

Unpacking XML-LibXSLT-2.002001.tar.gz

Entering XML-LibXSLT-2.002001

Checking configure dependencies from META.json

Checking if you have warnings 0 ... Yes (1.37)

Checking if you have File::Path 2.06 ... Yes (2.15)

Checking if you have strict 0 ... Yes (1.11)

Configuring XML-LibXSLT-2.002001

Running Makefile.PL

running pkg-config libxslt... ok

looking for -lxslt... no

libxslt not found

Try setting LIBS and INC values on the command line

Or get libxslt and libxml2 from

  http://www.libxml.org/

If you install via RPMs, make sure you also install the -devel

RPMs, as this is where the headers (.h files) are.

-> N/A

-> FAIL Configure failed for XML-LibXSLT-2.002001. See /root/.cpanm/work/1695296840.123696/build.log for details.

 

 

Any idea how to fix this issue?

 

Thanks,

Maher

 

 

This message is marked for Internal university use only. Not to be circulated outside KFUPM.

 


From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Maher Abdellatif Ahmad Qahwash <qahwash@kfupm.edu.sa>
Sent: 21 September 2023 15:20
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Sorry the libxslt is a folder (not a file) and is located here:

/usr/include/libxslt

 

We also have the following libxslt files here:

/usr/lib64/libxslt.so.1.1.32

/usr/lib64/libxslt-plugins

/usr/lib64/libxslt.so.1

/usr/lib64/pkgconfig/libxslt.pc

/usr/lib64/libxslt.so

/usr/share/licenses/libxslt

 

 

The error appearing when trying to install using CPAN is this:

looking for -lxslt... no

libxslt not found

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 5:01 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Internal We installed from RPM dnf install perl-XML-LibXSLT which was successful and resolved any

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

We installed from RPM dnf install perl-XML-LibXSLT which was successful and resolved any dependencies.

Then we did a dnf remove perl-XML-LibXSLT and then a cpanm (Yes we are using cpanm) XML::LibXSLT but received the same error and the installation failed.

 

Could the issue be from the location of the libxslt file?

 

# which libxslt

/usr/bin/which: no libxslt in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

 

The libxslt file is located here:

/usr/include/libxslt

Thanks

Maher

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of John Salter
Sent: Thursday, September 21, 2023 4:49 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Apologies, that previous ‘which’ wasn’t too helpful :\ If you try installing from RPM: >dnf install

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Apologies, that previous ‘which’ wasn’t too helpful :\

If you try installing from RPM:

>dnf install perl-XML-LibXSLT

Does it work (and resolve dependencies)?

If so, you could then remove the RPM version:
>dnf remove perl-XML-LibXSLT --noautoremove


and then try installing the CPAN version again.

Another thing you could try is using ‘cpanm’ – an alternative to CPAN.

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 2:37 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

I’m using the root user for running the below command and for trying to install the CPAN module, this is the output:

 

# which libxslt

/usr/bin/which: no libxslt in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

 

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of John Salter
Sent: Thursday, September 21, 2023 4:33 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. If you run: > which libxslt As the same user you are trying to install the CPAN module with, does

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

If you run:
> which libxslt

As the same user you are trying to install the CPAN module with, does it return anything?

 

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 2:20 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Hi Martin

 

The packages libxslt-devel libxslt libxml2-devel libxml2 are only installed using dnf and are not installed again on the system using CPAN.  As for the XML::LibXSLT it is recommended in the documentation to install it using CPAN and not as an rpm using dnf.

 

Any ideas?

 

Thanks,

Maher

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Martin Brändle
Sent: Thursday, September 21, 2023 3:56 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Hi, if you have the rpms installed, you don’t need the CPAN package (you should remove it) – otherwise

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi,

 

if you have the rpms installed, you don’t need the CPAN package (you should remove it) – otherwise you may run into conflicts.

Kind regards,

 

Martin

 

--

Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Stampfenbachstr. 73
CH-8006 Zürich

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Maher Abdellatif Ahmad Qahwash <qahwash@kfupm.edu.sa>
Date: Thursday, 21 September 2023 at 14:52
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Thank you John and Andrew for your support.

 

Actually we already have all the mentioned packages installed as shown:

 

]# dnf install libxslt-devel libxslt libxml2-devel libxml2

Updating Subscription Management repositories.

 

Last metadata expiration check: 0:52:15 ago on Thu 21 Sep 2023 02:54:02 PM +03.

Package libxslt-devel-1.1.32-6.el8.x86_64 is already installed.

Package libxslt-1.1.32-6.el8.x86_64 is already installed.

Package libxml2-devel-2.9.7-16.el8.x86_64 is already installed.

Package libxml2-2.9.7-16.el8.x86_64 is already installed.

Dependencies resolved.

Nothing to do.

Complete!

 

Any other ideas?

 

Thanks,

Maher

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Andrew Mehta
Sent: Thursday, September 21, 2023 3:31 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

Discussing this with a colleague, who has a suspicion the devel packages may be needed too, and recommended a cover-all-bases approach of: dnf install libxslt-devel libxslt libxml2-devel libxml2 Yours, Andrew. From: eprints-tech-request@ ecs. soton. ac. uk

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

Discussing this with a colleague, who has a suspicion the devel packages may be needed too, and recommended a cover-all-bases approach of:

 

dnf install libxslt-devel libxslt libxml2-devel libxml2

 

Yours,

Andrew.

 

 


From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of John Salter <J.Salter@leeds.ac.uk>
Sent: 21 September 2023 13:25
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi Maher,

I don’t have a RHEL8 box nearby right now, but I’d check that the libxml2 and libxslt packages are installed on the server.

> dnf install libxml2 libxslt

 

These are requirements for the perl modules you are trying to add.

 

Cheers,

John

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 12:49 PM
To: 'eprints-tech@ecs.soton.ac.uk' <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Hi

 

We are in the progress of migrating our EPrints 3.4.1 system from Rehat Linux 7.6 server to a Redhat Linux 8.6 server.  We have successfully installed all of the required packages but are having issues installing the XML::LibXSLT package.  As recommended in the documentation this package should be installed using CPAN.  However using CPAN we are receiving the following error:

 

Searching XML::LibXSLT () on cpanmetadb ...

--> Working on XML::LibXSLT

Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXSLT-2.002001.tar.gz

-> OK

Unpacking XML-LibXSLT-2.002001.tar.gz

Entering XML-LibXSLT-2.002001

Checking configure dependencies from META.json

Checking if you have warnings 0 ... Yes (1.37)

Checking if you have File::Path 2.06 ... Yes (2.15)

Checking if you have strict 0 ... Yes (1.11)

Configuring XML-LibXSLT-2.002001

Running Makefile.PL

running pkg-config libxslt... ok

looking for -lxslt... no

libxslt not found

Try setting LIBS and INC values on the command line

Or get libxslt and libxml2 from

  http://www.libxml.org/

If you install via RPMs, make sure you also install the -devel

RPMs, as this is where the headers (.h files) are.

-> N/A

-> FAIL Configure failed for XML-LibXSLT-2.002001. See /root/.cpanm/work/1695296840.123696/build.log for details.

 

 

Any idea how to fix this issue?

 

Thanks,

Maher

 

 

This message is marked for Internal university use only. Not to be circulated outside KFUPM.

 


From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Maher Abdellatif Ahmad Qahwash <qahwash@kfupm.edu.sa>
Sent: 21 September 2023 15:41
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

We are not sure if installing the perl-XML-LibXSLT using dnf will cause any segmentation faults with our Apache httpd webserver or not.  We are just following the recommendation in the documentation to install using CPAN.

 

Following is the cpanm –V output:

 

# ./cpanm -V

cpanm (App::cpanminus) version 1.7047 (./cpanm)

perl version 5.026003 (/usr/bin/perl)

 

  %Config:

    archname=x86_64-linux-thread-multi

    installsitelib=/usr/local/share/perl5

    installsitebin=/usr/local/bin

    installman1dir=/usr/share/man/man1

    installman3dir=/usr/share/man/man3

    sitearchexp=/usr/local/lib64/perl5

    sitelibexp=/usr/local/share/perl5

    vendorarch=/usr/lib64/perl5/vendor_perl

    vendorlibexp=/usr/share/perl5/vendor_perl

    archlibexp=/usr/lib64/perl5

    privlibexp=/usr/share/perl5

  %ENV:

  @INC:

    FatPacked::94715887577112=HASH(0x5624c2d56818)

    /usr/local/lib64/perl5

    /usr/local/share/perl5

    /usr/lib64/perl5/vendor_perl

    /usr/share/perl5/vendor_perl

    /usr/lib64/perl5

    /usr/share/perl5

 

 

This is the content of the file “XML-LibXSLT-2.002001-0.yml”

---

distribution: !!perl/hash:CPAN::Distribution

  CALLED_FOR: XML::LibXSLT

  CHECKSUM_STATUS: OK

  ID: S/SH/SHLOMIF/XML-LibXSLT-2.002001.tar.gz

  RO:

    CPAN_COMMENT: ~

    CPAN_USERID: SHLOMIF

  archived: tar

  build_dir: /root/.local/share/.cpan/build/XML-LibXSLT-2.002001-0

  incommandcolor: 1

  localfile: /root/.local/share/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXSLT-2.002001.tar.gz

  mandatory: 1

  negative_prefs_cache: 1

  prefs: {}

  reqtype: c

  unwrapped: !!perl/hash:CPAN::Distrostatus

    COMMANDID: 1

    FAILED: ''

    TEXT: YES

    TIME: 1695294479

  writemakefile: !!perl/hash:CPAN::Distrostatus

    COMMANDID: 1

    FAILED: 1

    TEXT: "NO -- No 'Makefile' created\n"

    TIME: 1695294480

perl:

  $^X: /usr/bin/perl

  mtime_$^X: 1673971108

  mtime_dll: 0

  sitearchexp: /usr/local/lib64/perl5

time: 1695294480

 

Thank you for your support.

Maher

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Andrew Mehta
Sent: Thursday, September 21, 2023 5:31 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

Is it a problem for your EPrints migration if perl-XML-LibXSLT is working fine for you? The CPAN install idea is only if you sometimes find the perl-XML-LibXSLT package causes segmentation faults with the Apache httpd webserver. You mention

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

Is it a problem for your EPrints migration if
perl-XML-LibXSLT

is working fine for you?

 

The CPAN install idea is only if you sometimes find the perl-XML-LibXSLT package causes segmentation faults with the Apache httpd webserver.


You mention you are using cpanm.
Is the following command...

cpanm -V 

...showing the correct installation locations?

 

Is any further info in build logs in your user's home directory's ".cpanm" folder?

 


From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Maher Abdellatif Ahmad Qahwash <qahwash@kfupm.edu.sa>
Sent: 21 September 2023 15:20
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Sorry the libxslt is a folder (not a file) and is located here:

/usr/include/libxslt

 

We also have the following libxslt files here:

/usr/lib64/libxslt.so.1.1.32

/usr/lib64/libxslt-plugins

/usr/lib64/libxslt.so.1

/usr/lib64/pkgconfig/libxslt.pc

/usr/lib64/libxslt.so

/usr/share/licenses/libxslt

 

 

The error appearing when trying to install using CPAN is this:

looking for -lxslt... no

libxslt not found

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 5:01 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Internal We installed from RPM dnf install perl-XML-LibXSLT which was successful and resolved any

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

We installed from RPM dnf install perl-XML-LibXSLT which was successful and resolved any dependencies.

Then we did a dnf remove perl-XML-LibXSLT and then a cpanm (Yes we are using cpanm) XML::LibXSLT but received the same error and the installation failed.

 

Could the issue be from the location of the libxslt file?

 

# which libxslt

/usr/bin/which: no libxslt in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

 

The libxslt file is located here:

/usr/include/libxslt

Thanks

Maher

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of John Salter
Sent: Thursday, September 21, 2023 4:49 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Apologies, that previous ‘which’ wasn’t too helpful :\ If you try installing from RPM: >dnf install

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Apologies, that previous ‘which’ wasn’t too helpful :\

If you try installing from RPM:

>dnf install perl-XML-LibXSLT

Does it work (and resolve dependencies)?

If so, you could then remove the RPM version:
>dnf remove perl-XML-LibXSLT --noautoremove


and then try installing the CPAN version again.

Another thing you could try is using ‘cpanm’ – an alternative to CPAN.

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 2:37 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

I’m using the root user for running the below command and for trying to install the CPAN module, this is the output:

 

# which libxslt

/usr/bin/which: no libxslt in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

 

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of John Salter
Sent: Thursday, September 21, 2023 4:33 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. If you run: > which libxslt As the same user you are trying to install the CPAN module with, does

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

If you run:
> which libxslt

As the same user you are trying to install the CPAN module with, does it return anything?

 

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 2:20 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Hi Martin

 

The packages libxslt-devel libxslt libxml2-devel libxml2 are only installed using dnf and are not installed again on the system using CPAN.  As for the XML::LibXSLT it is recommended in the documentation to install it using CPAN and not as an rpm using dnf.

 

Any ideas?

 

Thanks,

Maher

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Martin Brändle
Sent: Thursday, September 21, 2023 3:56 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Hi, if you have the rpms installed, you don’t need the CPAN package (you should remove it) – otherwise

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi,

 

if you have the rpms installed, you don’t need the CPAN package (you should remove it) – otherwise you may run into conflicts.

Kind regards,

 

Martin

 

--

Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Stampfenbachstr. 73
CH-8006 Zürich

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Maher Abdellatif Ahmad Qahwash <qahwash@kfupm.edu.sa>
Date: Thursday, 21 September 2023 at 14:52
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Thank you John and Andrew for your support.

 

Actually we already have all the mentioned packages installed as shown:

 

]# dnf install libxslt-devel libxslt libxml2-devel libxml2

Updating Subscription Management repositories.

 

Last metadata expiration check: 0:52:15 ago on Thu 21 Sep 2023 02:54:02 PM +03.

Package libxslt-devel-1.1.32-6.el8.x86_64 is already installed.

Package libxslt-1.1.32-6.el8.x86_64 is already installed.

Package libxml2-devel-2.9.7-16.el8.x86_64 is already installed.

Package libxml2-2.9.7-16.el8.x86_64 is already installed.

Dependencies resolved.

Nothing to do.

Complete!

 

Any other ideas?

 

Thanks,

Maher

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Andrew Mehta
Sent: Thursday, September 21, 2023 3:31 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

Discussing this with a colleague, who has a suspicion the devel packages may be needed too, and recommended a cover-all-bases approach of: dnf install libxslt-devel libxslt libxml2-devel libxml2 Yours, Andrew. From: eprints-tech-request@ ecs. soton. ac. uk

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

Discussing this with a colleague, who has a suspicion the devel packages may be needed too, and recommended a cover-all-bases approach of:

 

dnf install libxslt-devel libxslt libxml2-devel libxml2

 

Yours,

Andrew.

 

 


From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of John Salter <J.Salter@leeds.ac.uk>
Sent: 21 September 2023 13:25
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi Maher,

I don’t have a RHEL8 box nearby right now, but I’d check that the libxml2 and libxslt packages are installed on the server.

> dnf install libxml2 libxslt

 

These are requirements for the perl modules you are trying to add.

 

Cheers,

John

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 12:49 PM
To: 'eprints-tech@ecs.soton.ac.uk' <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Hi

 

We are in the progress of migrating our EPrints 3.4.1 system from Rehat Linux 7.6 server to a Redhat Linux 8.6 server.  We have successfully installed all of the required packages but are having issues installing the XML::LibXSLT package.  As recommended in the documentation this package should be installed using CPAN.  However using CPAN we are receiving the following error:

 

Searching XML::LibXSLT () on cpanmetadb ...

--> Working on XML::LibXSLT

Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXSLT-2.002001.tar.gz

-> OK

Unpacking XML-LibXSLT-2.002001.tar.gz

Entering XML-LibXSLT-2.002001

Checking configure dependencies from META.json

Checking if you have warnings 0 ... Yes (1.37)

Checking if you have File::Path 2.06 ... Yes (2.15)

Checking if you have strict 0 ... Yes (1.11)

Configuring XML-LibXSLT-2.002001

Running Makefile.PL

running pkg-config libxslt... ok

looking for -lxslt... no

libxslt not found

Try setting LIBS and INC values on the command line

Or get libxslt and libxml2 from

  http://www.libxml.org/

If you install via RPMs, make sure you also install the -devel

RPMs, as this is where the headers (.h files) are.

-> N/A

-> FAIL Configure failed for XML-LibXSLT-2.002001. See /root/.cpanm/work/1695296840.123696/build.log for details.

 

 

Any idea how to fix this issue?

 

Thanks,

Maher

 

 

This message is marked for Internal university use only. Not to be circulated outside KFUPM.

 


From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Maher Abdellatif Ahmad Qahwash <qahwash@kfupm.edu.sa>
Sent: 21 September 2023 15:20
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Sorry the libxslt is a folder (not a file) and is located here:

/usr/include/libxslt

 

We also have the following libxslt files here:

/usr/lib64/libxslt.so.1.1.32

/usr/lib64/libxslt-plugins

/usr/lib64/libxslt.so.1

/usr/lib64/pkgconfig/libxslt.pc

/usr/lib64/libxslt.so

/usr/share/licenses/libxslt

 

 

The error appearing when trying to install using CPAN is this:

looking for -lxslt... no

libxslt not found

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 5:01 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Internal We installed from RPM dnf install perl-XML-LibXSLT which was successful and resolved any

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

We installed from RPM dnf install perl-XML-LibXSLT which was successful and resolved any dependencies.

Then we did a dnf remove perl-XML-LibXSLT and then a cpanm (Yes we are using cpanm) XML::LibXSLT but received the same error and the installation failed.

 

Could the issue be from the location of the libxslt file?

 

# which libxslt

/usr/bin/which: no libxslt in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

 

The libxslt file is located here:

/usr/include/libxslt

Thanks

Maher

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of John Salter
Sent: Thursday, September 21, 2023 4:49 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Apologies, that previous ‘which’ wasn’t too helpful :\ If you try installing from RPM: >dnf install

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Apologies, that previous ‘which’ wasn’t too helpful :\

If you try installing from RPM:

>dnf install perl-XML-LibXSLT

Does it work (and resolve dependencies)?

If so, you could then remove the RPM version:
>dnf remove perl-XML-LibXSLT --noautoremove


and then try installing the CPAN version again.

Another thing you could try is using ‘cpanm’ – an alternative to CPAN.

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 2:37 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

I’m using the root user for running the below command and for trying to install the CPAN module, this is the output:

 

# which libxslt

/usr/bin/which: no libxslt in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

 

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of John Salter
Sent: Thursday, September 21, 2023 4:33 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. If you run: > which libxslt As the same user you are trying to install the CPAN module with, does

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

If you run:
> which libxslt

As the same user you are trying to install the CPAN module with, does it return anything?

 

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 2:20 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Hi Martin

 

The packages libxslt-devel libxslt libxml2-devel libxml2 are only installed using dnf and are not installed again on the system using CPAN.  As for the XML::LibXSLT it is recommended in the documentation to install it using CPAN and not as an rpm using dnf.

 

Any ideas?

 

Thanks,

Maher

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Martin Brändle
Sent: Thursday, September 21, 2023 3:56 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Hi, if you have the rpms installed, you don’t need the CPAN package (you should remove it) – otherwise

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi,

 

if you have the rpms installed, you don’t need the CPAN package (you should remove it) – otherwise you may run into conflicts.

Kind regards,

 

Martin

 

--

Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Stampfenbachstr. 73
CH-8006 Zürich

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Maher Abdellatif Ahmad Qahwash <qahwash@kfupm.edu.sa>
Date: Thursday, 21 September 2023 at 14:52
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Thank you John and Andrew for your support.

 

Actually we already have all the mentioned packages installed as shown:

 

]# dnf install libxslt-devel libxslt libxml2-devel libxml2

Updating Subscription Management repositories.

 

Last metadata expiration check: 0:52:15 ago on Thu 21 Sep 2023 02:54:02 PM +03.

Package libxslt-devel-1.1.32-6.el8.x86_64 is already installed.

Package libxslt-1.1.32-6.el8.x86_64 is already installed.

Package libxml2-devel-2.9.7-16.el8.x86_64 is already installed.

Package libxml2-2.9.7-16.el8.x86_64 is already installed.

Dependencies resolved.

Nothing to do.

Complete!

 

Any other ideas?

 

Thanks,

Maher

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Andrew Mehta
Sent: Thursday, September 21, 2023 3:31 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Migrating to Redhat Linux 8.6

 

Discussing this with a colleague, who has a suspicion the devel packages may be needed too, and recommended a cover-all-bases approach of: dnf install libxslt-devel libxslt libxml2-devel libxml2 Yours, Andrew. From: eprints-tech-request@ ecs. soton. ac. uk

ZjQcmQRYFpfptBannerStart

Warning: This email has been sent from outside KFUPM. Do not open links or attachments unless you are sure they are safe.

ZjQcmQRYFpfptBannerEnd

Discussing this with a colleague, who has a suspicion the devel packages may be needed too, and recommended a cover-all-bases approach of:

 

dnf install libxslt-devel libxslt libxml2-devel libxml2

 

Yours,

Andrew.

 

 


From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of John Salter <J.Salter@leeds.ac.uk>
Sent: 21 September 2023 13:25
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi Maher,

I don’t have a RHEL8 box nearby right now, but I’d check that the libxml2 and libxslt packages are installed on the server.

> dnf install libxml2 libxslt

 

These are requirements for the perl modules you are trying to add.

 

Cheers,

John

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Maher Abdellatif Ahmad Qahwash
Sent: Thursday, September 21, 2023 12:49 PM
To: 'eprints-tech@ecs.soton.ac.uk' <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Migrating to Redhat Linux 8.6

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Internal

 

Hi

 

We are in the progress of migrating our EPrints 3.4.1 system from Rehat Linux 7.6 server to a Redhat Linux 8.6 server.  We have successfully installed all of the required packages but are having issues installing the XML::LibXSLT package.  As recommended in the documentation this package should be installed using CPAN.  However using CPAN we are receiving the following error:

 

Searching XML::LibXSLT () on cpanmetadb ...

--> Working on XML::LibXSLT

Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXSLT-2.002001.tar.gz

-> OK

Unpacking XML-LibXSLT-2.002001.tar.gz

Entering XML-LibXSLT-2.002001

Checking configure dependencies from META.json

Checking if you have warnings 0 ... Yes (1.37)

Checking if you have File::Path 2.06 ... Yes (2.15)

Checking if you have strict 0 ... Yes (1.11)

Configuring XML-LibXSLT-2.002001

Running Makefile.PL

running pkg-config libxslt... ok

looking for -lxslt... no

libxslt not found

Try setting LIBS and INC values on the command line

Or get libxslt and libxml2 from

  http://www.libxml.org/

If you install via RPMs, make sure you also install the -devel

RPMs, as this is where the headers (.h files) are.

-> N/A

-> FAIL Configure failed for XML-LibXSLT-2.002001. See /root/.cpanm/work/1695296840.123696/build.log for details.

 

 

Any idea how to fix this issue?

 

Thanks,

Maher

 

 

This message is marked for Internal university use only. Not to be circulated outside KFUPM.