freshshell / fresh

Keep your dotfiles fresh.
https://freshshell.com/
1.17k stars 87 forks source link

Can't install in Fedora #178

Closed delucca closed 2 years ago

delucca commented 2 years ago

Hi, I am not being able to install it in Fedora:

[delucca@bud-0001 .dotfiles]$ bash -c "`curl -sL https://get.freshshell.com`"

Already up to date.
Can't locate sort.pm in @INC (you may need to install the sort module) (@INC contains: /usr/local/lib64/perl5/5.34 /usr/local/share/perl5/5.34 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /home/delucca/.fresh/source/freshshell/fresh/bin/fresh line 16

I've tried installing a couple of sort perl modules, but without success.

jasoncodes commented 2 years ago

Hi there. I don’t know much about Fedora but I just confirmed fresh works in Fedora 35 container with the following Dockerfile:

FROM fedora:35
RUN dnf install -y git perl
RUN bash -c "`curl -sL https://get.freshshell.com`"

I suspect you don’t have all the core Perl modules installed. Installing git seems to pull in the Perl interpreter but only whatever module packages git itself needs.

I’d probably just install the main perl package and call it a day but you could try installing just perl-sort and see how you go.

Some additional testing suggests this is minimal set of packages you need from Fedora to run fresh:

FROM fedora:35
RUN dnf install -y \
  git-core \
  perl-interpreter perl-File-Find perl-sort \
  findutils
RUN bash -c "`curl -sL https://get.freshshell.com`"
delucca commented 2 years ago

Thanks, indeed I was missing the perl-sort package.

Closing this