Page 2 of 2

Re: How to install html2wiki and TeX ?

Posted: 21. May 2020, 23:49
by galmei
salix_user wrote:
21. May 2020, 22:22
Requires: (all available at www.cpan.org)
Getopt::Long
CPAN

Do I need these ones ?
'Getopt::Long' and CPAN belong to the Perl 5 package and are therefore already installed.

Re: How to install html2wiki and TeX ?

Posted: 22. May 2020, 07:47
by salix_user
Failed to find module: HTML-WikiConverter-DokuWiki-0.53.tar.gz
What's my mistake ?

Code: Select all

[work]$ ls
HTML-WikiConverter-DokuWiki-0.53.tar.gz
[work]$ cpan2tgz HTML-WikiConverter-DokuWiki-0.53.tar.gz

CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes] yes

 <install_help>

Warning: You do not have write permission for Perl library directories.

To install modules, you need to configure a local Perl library directory or
escalate your privileges.  CPAN can help you by bootstrapping the local::lib
module or by configuring itself to use 'sudo' (if available).  You may also
resolve this problem manually if you need to customize your setup.

What approach do you want?  (Choose 'local::lib', 'sudo' or 'manual')
 [local::lib] sudo


Autoconfiguration complete.

commit: wrote '/home/user/.cpan/CPAN/MyConfig.pm'

You can re-run configuration any time with 'o conf init' in the CPAN shell
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/home/user/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/home/user/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Fri, 22 May 2020 03:41:03 GMT
  HTTP::Date not available
.............
  New CPAN.pm version (v2.27) available.
  [Currently running version is v2.11]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


...............................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/home/user/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /home/user/.cpan/Metadata

Failed to find module: HTML-WikiConverter-DokuWiki-0.53.tar.gz
[work]$

Re: How to install html2wiki and TeX ?

Posted: 22. May 2020, 08:40
by mimosa
I think you just calll it with the module name, like this:

Code: Select all

cpan2tgz HTML::WikiConverter::DokuWiki
Presumably sudo is needed.

EDIT There may be some unmet dependencies but hopefully you can work this out as you go from the output you see.

Re: How to install html2wiki and TeX ?

Posted: 22. May 2020, 09:57
by salix_user
mimosa wrote:
22. May 2020, 08:40
I think you just calll it with the module name, like this:

Code: Select all

cpan2tgz HTML::WikiConverter::DokuWiki
Presumably sudo is needed.

EDIT There may be some unmet dependencies but hopefully you can work this out as you go from the output you see.
Bingo ! It works ! Thanks to all !!

Code: Select all

sudo cpan2tgz HTML::WikiConverter::DokuWiki

Code: Select all

[DokuWiki_build]$ sudo cpan2tgz HTML::WikiConverter::DokuWiki
Password: 
Sorry, we have to rerun the configuration dialog for CPAN.pm due to
some missing parameters. Configuration will be written to
 <</root/.cpan/CPAN/MyConfig.pm>>


CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes] yes


Autoconfiguration complete.

commit: wrote '/root/.cpan/CPAN/MyConfig.pm'

You can re-run configuration any time with 'o conf init' in the CPAN shell
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Fri, 22 May 2020 09:29:03 GMT
  HTTP::Date not available
.............
  New CPAN.pm version (v2.27) available.
  [Currently running version is v2.11]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


...............................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/id/D/DI/DIBERRI/HTML-WikiConverter-DokuWiki-0.53.tar.gz
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/id/D/DI/DIBERRI/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/D/DI/DIBERRI/HTML-WikiConverter-DokuWiki-0.53.tar.gz ok
'YAML' not installed, will not store persistent state


Processing HTML::WikiConverter::DokuWiki...

  DIBERRI/HTML-WikiConverter-DokuWiki-0.53.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/HTML-WikiConverter-DokuWiki-0.53-fAkSQ9
Configuring D/DI/DIBERRI/HTML-WikiConverter-DokuWiki-0.53.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for HTML::WikiConverter::DokuWiki
Writing MYMETA.yml and MYMETA.json
  DIBERRI/HTML-WikiConverter-DokuWiki-0.53.tar.gz
  /usr/bin/perl5.22.2 Makefile.PL -- OK
Running make for D/DI/DIBERRI/HTML-WikiConverter-DokuWiki-0.53.tar.gz
cp lib/HTML/WikiConverter/DokuWiki.pm blib/lib/HTML/WikiConverter/DokuWiki.pm
Manifying 1 pod document
  DIBERRI/HTML-WikiConverter-DokuWiki-0.53.tar.gz
  /usr/bin/make -- OK
Manifying 1 pod document
Installing /tmp/HTML::WikiConverter::DokuWiki/usr/local/share/perl5/HTML/WikiConverter/DokuWiki.pm
Installing /tmp/HTML::WikiConverter::DokuWiki/usr/local/share/man/man3/HTML::WikiConverter::DokuWiki.3
Appending installation info to /tmp//HTML::WikiConverter::DokuWiki/usr/lib/perl5/perllocal.pod
cp: skipped directory './lib/HTML'
cp: skipped directory './blib/arch/auto/HTML'
cp: skipped directory './blib/lib/auto/HTML'
cp: skipped directory './blib/lib/HTML'

Slackware package maker, version 3.141593.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package:  /usr/src/perl-html-wikiconverter-dokuwiki-0.53-noarch-1.txz

./
install/
install/slack-required
install/doinst.sh
install/slack-desc
usr/
usr/local/
usr/local/lib/
usr/local/lib/perl5/
usr/local/lib/perl5/auto/
usr/local/lib/perl5/auto/HTML/
usr/local/lib/perl5/auto/HTML/WikiConverter/
usr/local/lib/perl5/auto/HTML/WikiConverter/DokuWiki/
usr/local/lib/perl5/auto/HTML/WikiConverter/DokuWiki/.packlist
usr/local/share/
usr/local/share/man/
usr/local/share/man/man3/
usr/local/share/man/man3/HTML::WikiConverter::DokuWiki.3
usr/local/share/perl5/
usr/local/share/perl5/HTML/
usr/local/share/perl5/HTML/WikiConverter/
usr/local/share/perl5/HTML/WikiConverter/DokuWiki.pm
usr/lib/
usr/lib/perl5/
usr/doc/
usr/doc/perl-html-wikiconverter-dokuwiki-0.53/
usr/doc/perl-html-wikiconverter-dokuwiki-0.53/Changes
usr/doc/perl-html-wikiconverter-dokuwiki-0.53/README

Slackware package /usr/src/perl-html-wikiconverter-dokuwiki-0.53-noarch-1.txz created.

Verifying package perl-html-wikiconverter-dokuwiki-0.53-noarch-1.txz.
Installing package perl-html-wikiconverter-dokuwiki-0.53-noarch-1.txz:
PACKAGE DESCRIPTION:
# perl-html-wikiconverter-dokuwiki 0.53 (Perl module)
#  
#  Packaged by cpan2tgz
#  cpan2tgz by Jason Woodward <woodwardj@jaos.org>
#  http://software.jaos.org/
#  
Executing install script for perl-html-wikiconverter-dokuwiki-0.53-noarch-1.txz.
Package perl-html-wikiconverter-dokuwiki-0.53-noarch-1.txz installed.

New CPAN.pm version (v2.27) available.
[Currently running version is v2.11]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
But salix's pkg works without problem.

-------------

For now I want to solve the problem
$ ./make_manuals.sh en
------- Making PDF manual (en) -------
/usr/bin/texi2dvi: pdfetex exited with bad status, quitting.
------- Making HTML manual (en) -------
------- Making TXT manual (en) -------
I have installed texlive from salix' repos
Gapan suggested installing texlive from https://tug.org/texlive/
For latex, you can either install the tetex package, if you want a (very) minimal installation that may or not be enough for your purposes, or you can install texlive, for a complete latex system: https://tug.org/texlive/
Use the provided script to install texlive somewhere on your harddrive (I have it under ~/texlive) and add the respective binary directory to your path somewhere in your ~/.profile. I have:

Code: Select all

export PATH=$PATH:~/texlive/bin/x86_64-linux

you'll need to re-login for it to work, or just type that command in your current bash.
Can this installation fix my problem '/usr/bin/texi2dvi: pdfetex exited with bad status, quitting.' ?
Do I need to remove salix's texlive before the installation via script ?

Re: How to install html2wiki and TeX ?

Posted: 22. May 2020, 10:04
by gapan
Do you have a pdfetex in your path?

Code: Select all

which pdfetex
I have texlive installed using the script I told you and I definitely do have it.

Re: How to install html2wiki and TeX ?

Posted: 22. May 2020, 10:38
by salix_user
gapan wrote:
22. May 2020, 10:04
Do you have a pdfetex in your path?

Code: Select all

which pdfetex
I have texlive installed using the script I told you and I definitely do have it.
[~]$ which pdfetex
/usr/bin/pdfetex
[~]$

Re: How to install html2wiki and TeX ?

Posted: 23. May 2020, 08:01
by salix_user
I was going to remove pkgs installed from Salix'repos:
tetex, texinfo, texlive, texlive-exstra, texi2html (installed via Sourcery)
and install TexLive from its site (as gapan suggested).
However, I decided to try another way.
I have removed only texlive and texlive-exstra.
I did not install TexLive from its site.

:) I don't know 'why' but this idea have solved the problem
$ ./make_manuals.sh en
------- Making PDF manual (en) -------
/usr/bin/texi2dvi: pdfetex exited with bad status, quitting.
------- Making HTML manual (en) -------
------- Making TXT manual (en) -------
So, for now I am not getting '/usr/bin/texi2dvi: pdfetex exited with bad status, quitting.'
[doc]$ ./make_manuals.sh en
------- Making PDF manual (en) -------
------- Making HTML manual (en) -------
------- Making TXT manual (en) -------
cinelerra_cv_manual_en.texi......
Probably, salix's pkgs tetex and texlive are incompatible. (?)

Re: How to install html2wiki and TeX ?

Posted: 23. May 2020, 18:41
by gapan
Oh, they definitely are. In fact, they should conflict each other as they include a lot of the same binaries. I didn't think you had tetex installed alongside texlive.