blais / xxdiff

Graphical File And Directories Comparator And Merge Tool
GNU General Public License v2.0
60 stars 10 forks source link

rst2html.py: Command not found #16

Open Luxcium opened 3 years ago

Luxcium commented 3 years ago

Hello I am not a super-advanced user and it was complicated to install the xxdiff tool (i.e. I failed to install the tool)

first of all I do not have /usr/lib64/qt5/bin/ (qmake) in my path (and it was hard for me to find how to fix that issue)...

but I have that issue and I do not know how to locate rst2html.py:

rst2html.py --output-encoding=iso-8859-1 doc.txt doc.html make: rst2html.py: Command not found make: *** [Makefile:1770: doc.html] Error 127

make -f Makefile.bootstrap # Generate the 'Makefile' file.
qmake  -o Makefile.qmake xxdiff.pro
Info: creating stash file /home/luxcium/.local/src/xxdiff/src/.qmake.stash
WARNING: Failure to find: resParser_lex.h
echo "MAKEDIR = ." > Makefile
cat Makefile.qmake Makefile.extra >> Makefile

make > make.log 2> make-err.log : xxdiff/src/make.log xxdiff/src/make-err.log

Luxcium commented 3 years ago

❯ uname -srvo Linux 5.11.14-100.fc32.x86_64 # 1 SMP Wed Apr 14 15:47:04 UTC 2021 GNU/Linux

❯ make --version GNU Make 4.2.1 Built for x86_64-redhat-linux-gnu Copyright (C) 1988-2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

❯ gcc --version gcc (GCC) 10.2.1 20201125 (Red Hat 10.2.1-9) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Luxcium commented 3 years ago

❯ flex --version flex 2.6.4

❯ bison --version bison (GNU Bison) 3.5 Written by Robert Corbett and Richard Stallman.

Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Luxcium commented 3 years ago

Screenshot_20210418_204340

❯ sudo su -
[root@corsairone-neb401-com ~]# cd /home/luxcium/.local/src/xxdiff/src
[root@corsairone-neb401-com src]# install ./xxdiff /usr/X11R6/bin
install: impossible d'évaluer './xxdiff': Aucun fichier ou dossier de ce type
[root@corsairone-neb401-com src]# LANG=en_EN.UTF-8
[root@corsairone-neb401-com src]# install ./xxdiff /usr/X11R6/bin
install: cannot stat './xxdiff': No such file or directory
[root@corsairone-neb401-com src]# ls -al *xxdiff*
-rw-rw-r-- 1 luxcium luxcium    766 Apr 18 19:33 sample.xxdiffrc
-rw-rw-r-- 1 luxcium luxcium   3033 Apr 18 19:33 xxdiff.1
-rw-rw-r-- 1 luxcium luxcium 431445 Apr 18 19:33 xxdiff.icns
-rw-rw-r-- 1 luxcium luxcium   8262 Apr 18 19:33 xxdiff.pro
[root@corsairone-neb401-com src]# pwd
/home/luxcium/.local/src/xxdiff/src
[root@corsairone-neb401-com src]# 
blais commented 3 years ago

Install docutils

On Sun, Apr 18, 2021, 20:24 Benjamin Vincent @.***> wrote:

Hello I am not a super-advanced user and it was complicated to install the xxdiff tool (i.e. I failed to install the tool)

first of all I do not have /usr/lib64/qt5/bin/ (qmake) in my path (and it was hard for me to find how to fix that issue)...

but I have that issue and I do not know how to locate rst2html.py:

rst2html.py --output-encoding=iso-8859-1 doc.txt doc.html make: rst2html.py: Command not found make: *** [Makefile:1770: doc.html] Error 127

make -f Makefile.bootstrap # Generate the 'Makefile' file. qmake -o Makefile.qmake xxdiff.pro Info: creating stash file /home/luxcium/.local/src/xxdiff/src/.qmake.stash WARNING: Failure to find: resParser_lex.hecho "MAKEDIR = ." > Makefile cat Makefile.qmake Makefile.extra >> Makefile

make > make.log 2> make-err.log : xxdiff/src/make.log https://pastebin.com/Ezm5JfGR xxdiff/src/make-err.log https://pastebin.com/SpgH0sFZ

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blais/xxdiff/issues/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACSBEYZTP2QWSR256CJOPDTJNZ3PANCNFSM43EZBHRA .

Luxcium commented 3 years ago

Install docutils

I have the same issue because:

LANG=en_EN.UTF-8dnf provides '*/rst2html.py' Last metadata expiration check: 0:05:10 ago on Wed Apr 28 04:20:47 2021. Error: No Matches found

dnf provides '*/rst2html*' python3-docutils-0.15.2-4.fc32.noarch : System for processing plaintext documentation for python3 Repo : fedora Matched from: Filename : /usr/bin/rst2html Filename : /usr/bin/rst2html4 Filename : /usr/bin/rst2html5

Luxcium commented 3 years ago

oh! and what about: WARNING: Failure to find: resParser_lex.h ??

jdkloe commented 2 years ago

I use this sequence to do the compilation and install on fedora 36 which seems to work just fine:

cd <source location>
git clone https://github.com/blais/xxdiff.git xxdiff_git
cd xxdiff_git
cd src
ln -s /usr//bin/rst2html rst2html.py
cd ..
make QMAKE=qmake-qt5 -C src -f Makefile.bootstrap
make -C src
cd $HOME/bin
ln -s <source location>/xxdiff_git/bin/xxdiff

I have the following installed: gcc-12.2.1-2.fc36.x86_64 python3-docutils-0.17.1-2.fc36.noarch qt5-qtbase-devel-5.15.5-4.fc36.x86_64