There is not much code in jconsole.
Perhaps it worths providing the option for people to compile and link jconsole 
themselves to whatever libedit system provides would be a good option.

The current jsource on GitHub is workable, but requires a bit fiddling.  
Perhaps you guys can provide a simple one-file c source code for jconsole 
alone, along with a minimal j verb in jpacman that compiles and links it.

> On May 20, 2019, at 10:03 AM, bill lam <[email protected]> wrote:
> 
> libedit is generally available but the problem is its version
> number is different on different distro and also its
> dependencies of libedit are also different.  eg on my debian
> 
> /usr/lib/x86_64-linux-gnu/libedit.so.2
> /usr/lib/x86_64-linux-gnu/libedit.so.2.0.59
> 
> $ ldd /usr/lib/x86_64-linux-gnu/libedit.so.2
> linux-vdso.so.1 (0x00007ffe36fcd000)
> libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007fa2fd8ca000)
> libbsd.so.0 => /usr/lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fa2fd8b0000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa2fd6ef000)
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fa2fd6e5000)
> /lib64/ld-linux-x86-64.so.2 (0x00007fa2fd95e000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa2fd6c4000)
> 
> note it depends on libtinfo.so.6 
> 
> jconsole can not run on rhel if users do not have sudo right to symlink 
> some shared library. I hope this issue can be addressed properly
> in j901.
> 
> Mon, 20 May 2019, Raul Miller написал(а):
>> It might make sense, in the context of Linux, to have both the minimalist
>> "all terrain" jconsole and a full featured "kit car" jconsole that detects
>> and uses readily apparent libraries and also includes a
>> diagnostic/suggestion mechanism for the missing ones.
>> 
>> It might even be appropriate to request this from the linux community
>> (though that's likely to pull in some heavyweight dependencies, unless we
>> can engage the exprtise of someone with experience with a lot of different
>> linux flavors.
>> 
>> Or maybe I should take this on? I have some relevant experience, but I'd
>> still not get everything right on my first try.
>> 
>> -- 
>> Raul
>> 
>> On Monday, May 20, 2019, bill lam <[email protected]> wrote:
>> 
>>> The major linux distro that can't work out of box is
>>> rhel/centos. Even libedit was statically linked in jconsole
>>> it still failed due to secondary dependencies of some other
>>> packages.
>>> 
>>> This is still evolving, if there are some better solutions,
>>> linenosie will be abandoned so it is now too early to spend
>>> additional resource to enhance linenoise support.
>>> 
>>> Mon, 20 May 2019, Ric Tikkanz написал(а):
>>>> In terms of how I currently use J, this would be a significant backward
>>>> step for me.
>>>> 
>>>> I note from the antirez/linenoise github site that TAB completion is
>>>> supported, but would need to be implemented by us?
>>>> 
>>>> Another derivative of linenoise that appears to be more feature complete,
>>>> while still being self-contained and cross-platform is
>>>> https://github.com/AmokHuginnsson/replxx
>>>> 
>>>> I do understand the allure of a no-dependencies solution that should work
>>>> everywhere and I don't profess to any expertise in this area at all, so
>>> not
>>>> sure what else I'm missing, it doesn't feel right to me that we are
>>> slowly
>>>> losing functionality rather than gaining it. So if there is a solution
>>> that
>>>> provides both "work everywhere" and at least standard functionality, it
>>>> would get my vote.
>>>> 
>>>> On Mon, May 20, 2019 at 7:21 PM bill lam <[email protected]> wrote:
>>>> 
>>>>> Yes, this is a minimalistic replacement for libedit.
>>>>> ctrl-r doesn't work either.
>>>>> 
>>>>> One good thing of this jconsole is it should work on any
>>>>> variants of linux because of its zero dependency on
>>>>> libedit and its secondary dependencies.
>>>>> 
>>>>> 
>>>>> Mon, 20 May 2019, Ric Tikkanz написал(а):
>>>>>> I've noticed a couple of differences in the new jconsole terminal
>>>>> compared
>>>>>> to the current one (in Linux at least).
>>>>>> 
>>>>>>  * Ctrl+z doesn't work to stop the J session and return me to the
>>>>>> terminal, so that I can later terminate or resume it, either in
>>>>> foreground
>>>>>> or background.
>>>>>> 
>>>>>>  * Tab-completion of paths no longer works. In the current
>>> (non-beta)
>>>>>> version, you get tab-completion of paths although it does
>>> unfortunately
>>>>> add
>>>>>> a trailing space. With the beta jconsole terminal, pressing the TAB
>>> key
>>>>>> seems to add a TAB.
>>>>>> ------------------------------------------------------------
>>> ----------
>>>>>> For information about J forums see http://www.jsoftware.com/
>>> forums.htm
>>>>> 
>>>>> --
>>>>> regards,
>>>>> ====================================================
>>>>> GPG key 1024D/4434BAB3 2008-08-24
>>>>> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
>>>>> ----------------------------------------------------------------------
>>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>>> 
>>>> ----------------------------------------------------------------------
>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>> 
>>> --
>>> regards,
>>> ====================================================
>>> GPG key 1024D/4434BAB3 2008-08-24
>>> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>> 
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> -- 
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to