Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot do `initialize' in Term::ReadLine::Gnu at /usr/bin/trizen #255

Open
alkaris2 opened this issue Dec 25, 2022 · 3 comments
Open

Cannot do `initialize' in Term::ReadLine::Gnu at /usr/bin/trizen #255

alkaris2 opened this issue Dec 25, 2022 · 3 comments

Comments

@alkaris2
Copy link

I can't use Trizen because of this error preventing it from working.

Cannot do `initialize' in Term::ReadLine::Gnu at /usr/bin/trizen line 724.

Term::ReadLine::Gnu is installed but according to Trizen it can't use it. I made sure perl is up to date I did the install with cpan install Term::ReadLine::Gnu but it still doesn't work at all. What even is this? why would it not work even when its been installed? I even installed the package for perl readline and it's all up to date, but still doesn't do anything for me.

@trizen
Copy link
Owner

trizen commented Dec 25, 2022

I cannot reproduce this issue...

Try this command to see if it fixes the issue:

perl -Mlib=/usr/lib/perl5/5.36/vendor_perl,/usr/share/perl5/core_perl /usr/bin/trizen trizen

@alkaris2
Copy link
Author

seems if I try this, it also does not work.

@michaellass
Copy link

I had the same problem on 32bit Arch Linux, whereas trizen worked perfectly on the official 64bit Arch distribution. The solution was to rebuild the perl-term-readline-gnu package, so I guess this is not a problem with trizen itself.

If you are in the same situation (i.e., using Arch Linux 32), the following should fix it:

  1. Download the PKGBUILD for perl-term-readline-gnu
  2. Change pkgrel from 1 to 1.0 as otherwise the version from the Arch Linux 32 repositories will be considered newer
  3. Run makepkg --ignorearch
  4. Install the resulting package using pacman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants