Altiscale / pdsh

Automatically exported from code.google.com/p/pdsh
GNU General Public License v2.0
0 stars 0 forks source link

history file not written in Debian #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

i did read the documentation and also tried Debian (sid) pdsh package to get 
the latest version. I also tried Ubuntu to get pdsh to write a history file. 
But it is not working.

I did not find any information in man page. I also checked strace if a try to 
write .history file is done. But there is no file written so far.

Any questions are highly welcome to find a solution :-)

Cheers
Konstantin

Original issue reported on code.google.com by Konne...@googlemail.com on 10 Jul 2014 at 10:43

GoogleCodeExporter commented 9 years ago
I'll have to go back and review this code, but I do know the history feature 
requires libreadline. Is pdsh built against libreadline on these systems?

Original comment by mark.gro...@gmail.com on 10 Jul 2014 at 2:32

GoogleCodeExporter commented 9 years ago
i unpacked the source package and checked the configure options...

these are the options i found:

        # Add here commands to configure the package.
        CFLAGS="$(CFLAGS) -Wl,-z,defs"
            ./configure --host=$(DEB_HOST_GNU_TYPE) \
                        --build=$(DEB_BUILD_GNU_TYPE) \
                        --with-ssh \
                        --with-genders \
                        --prefix=/usr \
                        --mandir=\$${prefix}/share/man \
                        --infodir=\$${prefix}/share/info \
                        --without-included-ltdl \
                        $(CONFIG_FLAGS)

Original comment by Konne...@googlemail.com on 10 Jul 2014 at 4:10

GoogleCodeExporter commented 9 years ago
I will check to rebuild the debian package with --with-readline and try to get 
that working. If it will work what I hope I will open a debian bug report for 
that.

Sorry for opening the bug report here. 

Thank you for your help. If I have questions I will inform you about that.

Original comment by Konne...@googlemail.com on 10 Jul 2014 at 4:16

GoogleCodeExporter commented 9 years ago
Okay, I had now the time to try to rebuild the debian package. With pdsh 2.27 
and libreadline 6.2.0 it was not possible reconfigure the sources with 
libreadline. It is always called that libreadline was not found even the dev 
package is installed and i also see /usr/include/readline/readline.h and 
history.h is there. I also tried manually compiling the actual version of 
libreadline with the newest pdsh package but still libreadline is not found.

I also tried to manually setting /usr/include as include path and --prefux /usr 
but all of that was not working at all.

Can you give me a short description how to compile that right? Or let me know 
if you need some logfiles of my compile tries.

Im stuck right now. If I would be able to compile pdsh with readline support I 
would instantly open a bug report for the pdsh maintainer on debian site.

Cheers
Konstantin

Original comment by Konne...@googlemail.com on 15 Jul 2014 at 2:02

GoogleCodeExporter commented 9 years ago
Can you attach your config.log? I get readline support on my Ubuntu 13.04 
system when using --with-readline

 checking for whether to include readline suport... yes
 checking for readline in -lreadline... yes

Original comment by mark.gro...@gmail.com on 15 Jul 2014 at 2:12

GoogleCodeExporter commented 9 years ago
can you give me the output of dpkg -l | grep readline ?
Would like to know which libs are installed on ur ubuntu 13.04.

Thank you in advance.

Original comment by Konne...@googlemail.com on 15 Jul 2014 at 3:08

GoogleCodeExporter commented 9 years ago
and here the log.

Original comment by Konne...@googlemail.com on 15 Jul 2014 at 3:12

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, I finally fixed the problem. Im very sorry for all that bugreport I made. I 
install ncurses-dev to fix the problem. The error message of the configure 
script was not that exact that it seemed like.

I have rebuilt the debian package and history file is working. I will open a 
bug/feature request for pdsh because I think history file is a basic feature 
which every user would be thankful of.

Cheers
Konstantin

Original comment by Konne...@googlemail.com on 15 Jul 2014 at 3:47

GoogleCodeExporter commented 9 years ago
Ah, I always forget ncurses is required for libreadline, too. Thanks for 
tracking it down!

Original comment by mark.gro...@gmail.com on 15 Jul 2014 at 3:54