Ports make requires Perl 5.24.2 [SOLVED ???]

Everything related to Installing and maintaining software.
Post Reply
hmoessle
Posts: 3
Joined: Tue Jul 25, 2017 2:30 pm

Ports make requires Perl 5.24.2 [SOLVED ???]

Post by hmoessle »

Hello

I'm a new to BSD coming from Ubuntu and just installed GhostBSD. Now I tried to install some software to 10.3 using ports. Some worked smooth, but with others I got nasty errors regarding missing Perl 5.24.2. I checked that 5.24.1 is installed an d I can't find a package newer than that. How to persuade ports system to use 5.24.1 ?

Thanks a lot in advance and greetings from Bonn (Germany)

Hans

[SOLVED ???]

well, found a workaround, I generate a link in /usr/local/bin from perl to perl5.24.2

root@pinot:/usr/local/bin # ln perl perl5.24.2
root@pinot:/usr/local/bin #

root@pinot:/usr/local/bin # ls -lisa perl*
301367 9 -rwxr-xr-x 4 root wheel 7568 13 Jul 03:15 perl
301367 9 -rwxr-xr-x 4 root wheel 7568 13 Jul 03:15 perl5
301367 9 -rwxr-xr-x 4 root wheel 7568 13 Jul 03:15 perl5.24.1
301367 9 -rwxr-xr-x 4 root wheel 7568 13 Jul 03:15 perl5.24.2
301368 25 -rwxr-xr-x 2 root wheel 45405 13 Jul 03:14 perlbug
301369 5 -rwxr-xr-x 1 root wheel 274 13 Jul 03:14 perldoc
301370 9 -rwxr-xr-x 1 root wheel 10829 13 Jul 03:14 perlivp
301368 25 -rwxr-xr-x 2 root wheel 45405 13 Jul 03:14 perlthanks
root@pinot:/usr/local/bin #

but is this a solution? I don't think so and hope someone have a better idea

Greetings Hans
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by ASX »

Hello and welcome!

Take a bit of time before using ports, and understand how pkg works.

Most important things are:
FreeBSD provide two pkg repositories, "quarterly" and "latest", the default is "quarterly", and this is also the default in GhostBSD 10.3.
ports usually refer to the head branch of the ports tree, which is more or less in sync with "latest" pkg repository.
Very likely you are now mixing pkgs from "quarterly" and ports from "head branch" and that most likely is the source of your issue.

~~~

Moreover, GhostBSD is now working with own repositories, built from head branch, thus close to FreeBSD "latest", we are in the mid of a switch and the upcoming GhostBSD 11.1 will make use of our own repos. Previously we were using FreeBSD repos.

~~~

Building from source is not the simplest thing, and there are several ways to build from ports tree: we strongly advice to use ports-mgmt/synth, a magnificient tool for building pkgs (and full repos too).

Stay absoluttely away from things like portmaster and portupgrade if you want to avoid troubles.

Look around on our forums, there are a few threads about switching to use our own repos ;)
viewtopic.php?f=69&t=715

Have fun!
hmoessle
Posts: 3
Joined: Tue Jul 25, 2017 2:30 pm

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by hmoessle »

Hi

thanks for the quick response

Yes, perhaps a mix of repositories, but how? I installed just out of the box, upgrade to latest via OctoPkg, initialised ports by portsnap fetch and portsnap extract and tried to install (in this case "audicity"). I didn't play with repository definitions (will have a look on the mentioned link ;-) when the installation of audacity is finished).

Anyway, there was a workaround and thanks again for your quick help

Greetings Hans
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by ASX »

hmoessle wrote:Yes, perhaps a mix of repositories, but how? I installed just out of the box, upgrade to latest via OctoPkg, initialised ports by portsnap fetch and portsnap extract and tried to install (in this case "audicity").
upgrade via octopkg was using "quarterly" repo
portsnap fetch extract, extract the head branch, they are exactly out of sync!
I didn't play with repository definitions
The problem lie in the default repo (quarterly instead of latest) and on the widely documented belief that it is safe to use "portsnap fetch extract", and it is not the case.

The fix, in your case can be:
a) build all pkgs from ports, eventually do that using synth
b) upgrade your repo config to make use of our own repos (previous link) and reinstall ALL packages.

audacity is available in GhostBSD repos, do you need special settings ? please let us know about.
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by ASX »

btw, if you use IRC, you can join #ghostbsd on Freenode ;)
hmoessle
Posts: 3
Joined: Tue Jul 25, 2017 2:30 pm

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by hmoessle »

puhhh, sounds like a night shift ;-)

I'll try suggestion b) , but not now (install of tex is taking some time) and will post the results

Thanks and bye

Hans
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by ASX »

hmoessle wrote:puhhh, sounds like a night shift ;-)
Yeah, usually it is. :mrgreen:
Symons
Posts: 1
Joined: Tue Nov 14, 2017 5:17 am

Re: Ports make requires Perl 5.24.2 [SOLVED ???]

Post by Symons »

hmoessle wrote:puhhh, sounds like a night shift ;-)

I'll try suggestion b) , but not now (install of tex is taking some time) and will post the results

Thanks and bye

Hans
Hey Hans did upgrade your repo config and using your own repos work out for you?
Post Reply