WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: I'm unable to get irssi working. Help.  (Read 12305 times)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14816
Re: I'm unable to get irssi working. Help.
« Reply #15 on: January 15, 2017, 07:49:00 AM »
The location of the perl library in tc-7.x is /usr/local/lib/perl5/5.22.0/i486-linux/CORE/libperl.so

I'd guess that the irssi extension was created in a previous version of tinycore using a previous version of perl and thus is looking for the perl library in the wrong place.

Offline toasted

  • Newbie
  • *
  • Posts: 13
Re: I'm unable to get irssi working. Help.
« Reply #16 on: January 15, 2017, 02:11:46 PM »
How do I point irssi to the right perl library?

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: I'm unable to get irssi working. Help.
« Reply #17 on: January 15, 2017, 03:35:59 PM »
Extensions have been uploaded today already, so you might try updating


Sent from my iPhone using Tapatalk

Offline toasted

  • Newbie
  • *
  • Posts: 13
Re: I'm unable to get irssi working. Help.
« Reply #18 on: January 15, 2017, 08:38:29 PM »
I just tried from a fresh install and it is giving me the same error.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: I'm unable to get irssi working. Help.
« Reply #19 on: January 15, 2017, 10:13:01 PM »
I just tried from a fresh install and it is giving me the same error.
I just tried irssi also and I can confirm,  you are not wrong :p

Ok so I successfully launched irssi after creating a symlink /usr/lib/libperl.so to the real source

Do this:
Code: [Select]
sudo ln -sf /usr/local/lib/perl5/5.22.0/i486-linux/CORE/libperl.so /usr/lib/libperl.sothen add " usr/lib/libperl.so " to your backup so the link will persist after a reboot


Maybe this link should be created by the perl5 startup script?? Or maybe irssi should be compiled against the tc-7 perl5 extension??
PS.  a symlink in /usr/local/lib/libperl.so does not work either
     a symlink in /usr/lib/libperl.so works

Code: [Select]
Irssi v0.8.21 - http://www.irssi.org                                                                                                                                                               
19:10 -!-  ___           _
19:10 -!- |_ _|_ _ _____(_)
19:10 -!-  | || '_(_-<_-< |
19:10 -!- |___|_| /__/__/_|
19:10 -!- Irssi v0.8.21 - http://www.irssi.org
19:10 -!- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
19:10 -!- Hi there! If this is your first time using Irssi, you
19:10 -!- might want to go to our website and read the startup
19:10 -!- documentation to get you going.
19:10 -!-
19:10 -!- Our community and staff are available to assist you or
19:10 -!- to answer any questions you may have.
19:10 -!-
19:10 -!- Use the /HELP command to get detailed information about
19:10 -!- the available commands.
19:10 -!- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
19:24 Irssi commands:
19:24 accept     die         knock    notice    sconnect   unload   
19:24 action     disconnect  knockout notify    script     unnotify 
19:24 admin      echo        lastlog  op        scrollback unquery   
19:24 alias      eval        layout   oper      server     unsilence
19:24 away       exec        links    part      servlist   upgrade   
19:24 ban        flushbuffer list     ping      set        uptime   
19:24 beep       foreach     load     query     sethost    userhost 
19:24 bind       format      log      quit      silence    ver       
19:24 cat        hash        lusers   quote     squery     version   
19:24 cd         help        map      rawlog    squit      voice     
19:24 channel    hilight     me       recode    stats      wait     
19:24 clear      ignore      mircdcc  reconnect statusbar  wall     
19:24 completion info        mode     redraw    time       wallops   
19:24 connect    invite      motd     rehash    toggle     who       
19:24 ctcp       ircnet      msg      reload    topic      whois     
19:24 cycle      ison        names    resize    trace      whowas   
19:24 dcc        join        nctcp    restart   ts         window   
19:24 dehilight  kick        netsplit rmreconns unalias   
19:24 deop       kickban     network  rmrejoins unban     
19:24 devoice    kill        nick     save      unignore

Interesting, but unfortunately I don't know how to use it..
« Last Edit: January 15, 2017, 10:26:50 PM by coreplayer2 »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14816
Re: I'm unable to get irssi working. Help.
« Reply #20 on: January 16, 2017, 06:07:12 AM »
If irssi is configured with "--with-perl-lib=/usr/local/lib/perl5/5.22.0", it should be able to find libperl

Offline toasted

  • Newbie
  • *
  • Posts: 13
Re: I'm unable to get irssi working. Help.
« Reply #21 on: January 16, 2017, 09:28:52 PM »
coreplayer2,
The syntax worked! Thanks a lot for your halp! :)

Now I just got to add to my backup. This is great..

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: I'm unable to get irssi working. Help.
« Reply #22 on: January 16, 2017, 09:55:44 PM »
coreplayer2,
The syntax worked! Thanks a lot for your halp! :)

Now I just got to add to my backup. This is great..
You're welcome, but this is only a temporary fix.  Hopefully the maintainer will figure out what's wrong and perhaps recompile with an updated configure option

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: I'm unable to get irssi working. Help.
« Reply #23 on: January 17, 2017, 12:01:49 PM »
If irssi is configured with "--with-perl-lib=/usr/local/lib/perl5/5.22.0", it should be able to find libperl

I'm running tc6 and there it has to be /usr/local/lib/perl5/5.20.0
To be honest I'm a bit confused now, I thought all this would be the job of ldconfig?

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: I'm unable to get irssi working. Help.
« Reply #24 on: January 17, 2017, 12:10:38 PM »
do we have to add these dirs to /etc/ld.so.conf ?

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: I'm unable to get irssi working. Help.
« Reply #25 on: January 17, 2017, 01:18:10 PM »
I realize now that the only viable option I'm seeing would be to update perl5 in tc6. Until then it won't work out of the box on both tc6 and tc7 at the same time!

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: I'm unable to get irssi working. Help.
« Reply #26 on: January 17, 2017, 02:48:00 PM »
ok, sorry to make so many posts (i can't edit my older ones any more).

i have realized updating the perl package is not a good option, the only thing that would work without creating other problems with older existing packages would be to have both versions alongside each other. it seems like perl got designed to allow this.

in the meantime i just submitted an updated irssi package just for 7.x

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: I'm unable to get irssi working. Help.
« Reply #27 on: January 18, 2017, 05:26:56 AM »
Could it create the symlink in the startup script? Surely there's only one libperl.so?
The only barriers that can stop you are the ones you create yourself.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14816
Re: I'm unable to get irssi working. Help.
« Reply #28 on: January 18, 2017, 07:04:44 AM »
Since you have to recompile all of the perl modules every time the perl version changes I assume there's no attempt at backwards compatibilty?

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: I'm unable to get irssi working. Help.
« Reply #29 on: January 18, 2017, 09:03:36 AM »
perl people don't like this, they want the freedom to break the ABI. thus they say we should make two extensions (either two perl extensions to be installed alongside, or two irssi versions. for me the latter was easier)
« Last Edit: January 18, 2017, 09:06:30 AM by hiro »