[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] New Server Net::LDAP install Problem
- Subject: [EP-tech] New Server Net::LDAP install Problem
- From: drn at ecs.soton.ac.uk (David R Newman)
- Date: Mon, 15 May 2023 17:22:05 +0100
- In-reply-to: <CAKkNZ9Ctcq6WxufPJutFeu7=qHq4En3knVLkfcdnbD7ccvo+Sw@mail.gmail.com>
- References: <CAKkNZ9AzGFPr0RyUPeOj3N56SFcbPEauR_G7EvUO0dt_D0AaaQ@mail.gmail.com> <0a2b2436-4d46-d38e-fecd-3bad698016b7@ecs.soton.ac.uk> <CAKkNZ9Ctcq6WxufPJutFeu7=qHq4En3knVLkfcdnbD7ccvo+Sw@mail.gmail.com> <e2e594f8-52af-89c1-a892-657ae5b0abc0@ecs.soton.ac.uk>
Hi James,
There is a virtual package I install on almost all dev servers I run
with Debian/Ubuntu called build-essential.? I have never found an
equivalent for RHEL-based Linux but I had never spent a huge amount of
time looking, as I rarely build from source on such flavours of Linux.?
A quick bit of Googling, suggests an equivalent-ish of:
|yum groupinstall 'Development Tools'|
Although, it may not always be as straightforward as a single command,
which is probably why I just install gcc, make, etc. as required or RHEL.
Regards
David Newman
On 15/05/2023 16:30, James Kerwin wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Hi David,
>
> Thank you so much! That's got me past that problem.
>
> I started this upgrade back in January, then the strikes massively
> disrupted it so?my memory?is a bit vague. Colleagues I needed to do
> things with the old and new servers were facing a huge backlog of work
> while already under a significant strain with their usual workload.
> The point I had got to with it was the configuration section here:
>
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FInstalling_EPrints_on_Debian%2FUbuntu%23%3A~%3Atext%3Deprints%2Fflavours%2Fpub_lib-%2CConfiguration%2C-Next%252C%2520as%2520the&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cd82da3bfc6ee4c4e807f08db556086dd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638197645289643566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5levzfEnUISklXRWVWjzqjlEZk%2Fv%2B0ZlR1zhlu5NMA0%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FInstalling_EPrints_on_Debian%2FUbuntu%23%3A~%3Atext%3Deprints%2Fflavours%2Fpub_lib-%2CConfiguration%2C-Next%252C%2520as%2520the&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cd82da3bfc6ee4c4e807f08db556086dd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638197645289643566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5levzfEnUISklXRWVWjzqjlEZk%2Fv%2B0ZlR1zhlu5NMA0%3D&reserved=0>
>
> Incidentally, that page has been my bible with upgrades
> (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FInstalling_EPrints_on_Debian%2FUbuntu&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cd82da3bfc6ee4c4e807f08db556086dd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638197645289643566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=yCO4u05otws9ubhDaOaMQdswU5%2FVgxUisppraP%2BhEFA%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FInstalling_EPrints_on_Debian%2FUbuntu&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cd82da3bfc6ee4c4e807f08db556086dd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638197645289643566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=yCO4u05otws9ubhDaOaMQdswU5%2FVgxUisppraP%2BhEFA%3D&reserved=0>).
> Due to having set up the Apache config with the URLs I hadn't reached
> the point of loading the webpages for the new server as I was waiting
> for the IPs and URL to be swapped over from the old server. Today I
> also learnt that I hadn't installed "make".
>
> From what I've been doing today, I hadn't installed CPAN, but I have
> now as I've just used it for Net::LDAP.
>
> Thank you again for your help!
> James
>
> On Mon, May 15, 2023 at 2:15?PM David R Newman <drn at ecs.soton.ac.uk>
> wrote:
>
> HI James,
>
> I think the issue is that you need the C complier gcc installed to
> build the Text::Soundex library.? If you are on a Debian-based
> Linux you will need the following instead:
>
> apt install gcc libgcc1
>
> If you then run (presumably) cpan again it should be able to
> install Text::Soundex and Net::LDAP.
>
> However, you should just be able to install libnet-ldap-perl using
> APT to save needing to use CPAN. It would be useful to know if you
> were following any instructions (e.g. on wiki.eprints.org
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cd82da3bfc6ee4c4e807f08db556086dd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638197645289643566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=x1cSQKbAzSHjeCu2c3nWABxIyIpaJDPoxak77gW7wH4%3D&reserved=0>)
> that advises installing using CPAN?? As it would be useful for
> those to be updated to suggest first trying to install using apt
> (or yum/dnf on RHEL).
>
> Regards
>
> David Newman
>
> P.S. You are right that the latest version of EPrints is 3.4.4.?
> There is a release candidate for EPrints 3.4.5 but no full release
> yet.
>
>
> On 15/05/2023 13:09, James Kerwin via Eprints-tech wrote:
>> *CAUTION:* This e-mail originated outside the University of
>> Southampton.
>> Hi,
>>
>> This isn't strictly an EPrints problem, but this list could have
>> seen the same thing so...
>>
>> I'm reaching the end of an install of our new repository test
>> server. It's an updated version of Ubuntu (20) and the latest
>> version of EPrints I could get (3.4.4? Can't check right now).
>>
>> Trying to install Net::LDAP and it keeps failing because it can't
>> install a dependency: Text::Soundex.
>>
>> When I attempt to install Text::Soundex I get the following in
>> the build log (from where it looks like it goes wrong):
>>
>> chmod 644 "Soundex.bs"
>>
>> "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty'
>> -- Soundex.bs blib/arch/auto/Text/Soundex/Soundex.bs 644
>>
>> "/usr/bin/perl" "/usr/share/perl/5.30/ExtUtils/xsubpp"
>> ?-typemap '/usr/share/perl/5.30/ExtUtils/typemap'
>> ?Soundex.xs > Soundex.xsc
>>
>> mv Soundex.xsc Soundex.c
>>
>> x86_64-linux-gnu-gcc -c ? -D_REENTRANT -D_GNU_SOURCE
>> -DDEBIAN -fwrapv -fno-strict-aliasing -pipe
>> -I/usr/local/include -D_LARGEFILE_SOURCE
>> -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"3.05\"
>> -DXS_VERSION=\"3.05\" -fPIC "-I/usr/lib/x86_64->
>>
>> /bin/sh: 1: x86_64-linux-gnu-gcc: not found
>>
>> make: *** [Makefile:334: Soundex.o] Error 127
>>
>> Has anybody experienced something similar? On my data repository
>> server, which has an almost identical setup I have net::LDAP
>> installed and Text::Soundex appears not to be installed (perl -e
>> "use Text::Soundex"), but everything works as I would expect?
>>
>> Some googling about "x86_64-linux-gnu-gcc" indicates some Python
>> packages might be missing? I'm incredibly uncertain about this
>> and with work for my employer I'm slightly more picky about which
>> internet strangers I trust for direction. If any of you could
>> nudge me in the right direction I would be really?grateful.
>>
>> Thanks,
>> James
>>
>> *** Options:http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>> *** Archive:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cd82da3bfc6ee4c4e807f08db556086dd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638197645289643566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=h4CGn2I8pEltfZk%2F%2B460lSqvLc00tI4X247P%2FkSdnh8%3D&reserved=0 <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cd82da3bfc6ee4c4e807f08db556086dd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638197645289643566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=h4CGn2I8pEltfZk%2F%2B460lSqvLc00tI4X247P%2FkSdnh8%3D&reserved=0>
>> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cd82da3bfc6ee4c4e807f08db556086dd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638197645289643566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=x1cSQKbAzSHjeCu2c3nWABxIyIpaJDPoxak77gW7wH4%3D&reserved=0 <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cd82da3bfc6ee4c4e807f08db556086dd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638197645289643566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=x1cSQKbAzSHjeCu2c3nWABxIyIpaJDPoxak77gW7wH4%3D&reserved=0>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20230515/73c6fa2e/attachment-0001.html