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

rst2html.py: Command not found #16

Open
Luxcium opened this issue Apr 19, 2021 · 7 comments
Open

rst2html.py: Command not found #16

Luxcium opened this issue Apr 19, 2021 · 7 comments

Comments

@Luxcium
Copy link
Contributor

Luxcium commented Apr 19, 2021

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
Copy link
Contributor Author

Luxcium commented Apr 19, 2021

❯ 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
Copy link
Contributor Author

Luxcium commented Apr 19, 2021

❯ 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
Copy link
Contributor Author

Luxcium commented Apr 19, 2021

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
Copy link
Owner

blais commented Apr 19, 2021 via email

@Luxcium
Copy link
Contributor Author

Luxcium commented Apr 28, 2021

Install docutils

I have the same issue because:

LANG=en_EN.UTF-8
dnf 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
Copy link
Contributor Author

Luxcium commented Apr 28, 2021

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

@jdkloe
Copy link

jdkloe commented Sep 24, 2022

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

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