pkg install -forge linear-algebra.............fails

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

pkg install -forge linear-algebra.............fails

Leloup
Bonjour,

       From Linux Mint, I updated Octave 4.0.0 to 4.1.1.
      I get some issues to install linear-algebra and communications
packages.

>>pkg install -forge linear-algebra
conftest.cc:1:27: *fatal error*: octave/config.h: No such file or directory
 #include <octave/config.h>
                           ^
compilation terminated.
configure: error: Could not run /app/bin/mkoctfile-4.4.1
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for *mkoctfile*... /app/bin/mkoctfile-4.4.1

pkg: error running the configure script for linear-algebra.
error: called from
    configure_make at line 82 column 9
    install at line 184 column 7
    pkg at line 437 column 9

With the Octave version 4.0.0 these two packages worked.

Do you have an idea what do?

Regards,

Leloup



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: pkg install -forge linear-algebra.............fails

siko1056
On Sat, Sep 29, 2018 at 4:14 PM Leloup <[hidden email]> wrote:
Bonjour,

       From Linux Mint, I updated Octave 4.0.0 to 4.1.1.
      I get some issues to install linear-algebra and communications
packages.

>>pkg install -forge linear-algebra
conftest.cc:1:27: *fatal error*: octave/config.h: No such file or directory
 #include <octave/config.h>
                           ^
compilation terminated.
configure: error: Could not run /app/bin/mkoctfile-4.4.1
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for *mkoctfile*... /app/bin/mkoctfile-4.4.1

pkg: error running the configure script for linear-algebra.
error: called from
    configure_make at line 82 column 9
    install at line 184 column 7
    pkg at line 437 column 9

With the Octave version 4.0.0 these two packages worked.

Do you have an idea what do?

Regards,

Leloup


This problem is unfortunately known since the Octave 4.4.0 release [1].  The last release of the package 2.2.2 was 2015-04-05, there seems to be no maintainer at the moment.  Since the last release only a few updates happened in the development repository [2], which at least seem to fix the installation issues, only a few deprecation warnings persist.

To overcome the lack of a release, I am afraid, you have to put a little hands on:

1. Install the "generate_html" package: >> pkg install -forge generate_html
2. Clone the latest version: >> hg clone http://hg.code.sf.net/p/octave/linear-algebra octave-linear-algebra
3. Run inside the directory: >> make release

The last step should already install the package in your default location (pkg load linear-algebra).  Otherwise you'll find the *.tar.gz file in the "target" directory.

HTH,
Kai



Reply | Threaded
Open this post in threaded view
|

Re: pkg install -forge linear-algebra.............fails

Leloup
Bonjour Kai,

    Thank you for your message:
    1. Install the "generate_html" package: >> pkg install -forge
generate_html.......OK    
    2. Clone the latest version: >> hg clone
http://hg.code.sf.net/p/octave/linear-algebra octave-linear-algebra...OK  
    3. Run inside the directory: >> make release.....failed    


>> pkg install linear-algebra-2.2.2.tar.gz
conftest.cc:1:27: fatal error: octave/config.h: No such file or directory
 #include <octave/config.h>
                           ^
compilation terminated.
configure: error: Could not run /app/bin/mkoctfile-4.4.1
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for mkoctfile... /app/bin/mkoctfile-4.4.1

pkg: error running the configure script for linear-algebra.
error: called from
    configure_make at line 82 column 9
    install at line 184 column 7
    pkg at line 437 column 9

*I don't know what more to do..........*      





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: pkg install -forge linear-algebra.............fails

siko1056
On Thu, Oct 4, 2018 at 9:25 PM Leloup <[hidden email]> wrote:
Bonjour Kai,

    Thank you for your message:
    1. Install the "generate_html" package: >> pkg install -forge
generate_html.......OK   
    2. Clone the latest version: >> hg clone
http://hg.code.sf.net/p/octave/linear-algebra octave-linear-algebra...OK 
    3. Run inside the directory: >> make release.....failed     
[snip]
 
Can you please be more verbose about the error of step 3.?  I did not emphasize, that steps 2. and 3. have to be made from a plain terminal, not from within Octave.

HTH,
Kai


Reply | Threaded
Open this post in threaded view
|

Re: pkg install -forge linear-algebra.............fails

Leloup
Bonjour Kali

 "3. Run inside the directory: >> make release.....failed "
*leloup@leloup-VirtualBox ~ $* make release
make: No rules for making the release target. Stop
 On Web,  I found out this:  "Syntax and preparation of make utility:  make
[ -f makefile ] [ option ] ... target ...  "

  Target is not specified. Isn't?

Regards,

Le Loup




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: pkg install -forge linear-algebra.............fails

siko1056
On Fri, Oct 5, 2018 at 10:09 AM Leloup <[hidden email]> wrote:
Bonjour Kali

 "3. Run inside the directory: >> make release.....failed "
*leloup@leloup-VirtualBox ~ $* make release
make: No rules for making the release target. Stop
 On Web,  I found out this:  "Syntax and preparation of make utility:  make
[ -f makefile ] [ option ] ... target ...  "

  Target is not specified. Isn't?

Regards,

Le Loup


I think you are not in the right directory, please do exactly:

  $ hg clone http://hg.code.sf.net/p/octave/linear-algebra octave-linear-algebra
  $ cd octave-linear-algebra
  $ make release 

Does this work for you?

Kai


Reply | Threaded
Open this post in threaded view
|

Re: pkg install -forge linear-algebra.............fails

Leloup
Thank you Kai for your help    

leloup@leloup-VirtualBox ~ $ cd octave-linear-algebra
leloup@leloup-VirtualBox ~/octave-linear-algebra $ make release
Installing package locally ...
octave --no-window-system --silent --eval 'pkg ("install",
"target/linear-algebra-2.2.2.tar.gz")'
make: octave : commande introuvable
Makefile:68 : la recette pour la cible « install » a échouée
make: *** [install] Erreur 127      

I did manually with octave:/home/michaou/octave-linear-algebra/target
>>pkg install linear-algebra-2.2.2.tar.gz
I saw at screen many warnings....but no fatal error..!!!      

Package Name    | Version | Installation directory
----------------+---------+-----------------------
linear-algebra *|   2.2.2 | /home/michaou/octave/linear-algebra-2.2.2
I tested different functions...so far, so good.

The next will be with communications pkg.... :-)    

Regards,

Leloup





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: pkg install -forge linear-algebra.............fails

Leloup
* Octave:*    generate_html *|   0.3.1 |
/home/leloup/octave/generate_html-0.3.1
*leloup@leloup-VirtualBox ~ $* hg clone
http://hg.code.sf.net/p/octave/communications
octave-communicationsrequesting all changes
adding changesets
adding manifests
adding file changes
added 426 changesets with 2566 changes to 289 files
updating to branch default
152 files updated, 0 files merged, 0 files removed, 0 files unresolve
*
Looks OK...
leloup@leloup-VirtualBox ~ $ *cd octave-communications
*leloup@leloup-VirtualBox ~/octave-communications $* make release
Creating package version 1.2.1 release ...
rm -rf communications-1.2.1
hg archive --exclude ".hg*" --exclude Makefile --type files
communications-1.2.1
cd communications-1.2.1/doc && make all
make[1] : on entre dans le répertoire
« /home/leloup/octave-communications/communications-1.2.1/doc »
/bin/sh images.sh > images.mk
Making texinfo comms.texi
Function commsimages, does not contain texinfo help
open3: exec of makeinfo --fill-column 1600 --no-warn --no-validate
--no-headers --force --ifinfo failed at ./mktexi.pl line 340.
makeinfo --no-split -o comms.info comms.texi
make[1]: makeinfo : commande introuvable  (=order not available)
Makefile:30 : la recette pour la cible « comms.info » a échouée  (= the
recipe for the target "comms.info" has failed)
make[1]: *** [comms.info] Erreur 127
make[1] : on quitte le répertoire
« /home/leloup/octave-communications/communications-1.2.1/doc »
Makefile:38 : la recette pour la cible « communications-1.2.1 » a échouée
(=the recipe for the target "communications-1.2.1" has *failed*)    
make: *** [communications-1.2.1] Erreur 2

In this case, I have no idea what to do.....Do you have any idea?  

Regards,
Leloup




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: pkg install -forge linear-algebra.............fails

Mike Miller-4
On Fri, Oct 05, 2018 at 11:51:54 -0500, Leloup wrote:
> Making texinfo comms.texi
> Function commsimages, does not contain texinfo help
> open3: exec of makeinfo --fill-column 1600 --no-warn --no-validate
> --no-headers --force --ifinfo failed at ./mktexi.pl line 340.
> makeinfo --no-split -o comms.info comms.texi
> make[1]: makeinfo : commande introuvable  (=order not available)

You need to have GNU makeinfo installed to build the package
documentation.

You will also need to patch the communications package to be able to
build against Octave 4.4

 https://salsa.debian.org/pkg-octave-team/octave-communications/blob/master/debian/patches/octave-4.4.patch

--
mike



signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pkg install -forge linear-algebra.............fails

Leloup
Bonjour Mike,

1)..."You need to have GNU makeinfo installed to build the package
documentation. "

leloup@leloup-VirtualBox ~ $ sudo apt-get install texinfo
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances      
Lecture des informations d'état... Fait
Le paquet suivant a été installé automatiquement et n'est plus nécessaire :
  libapparmor1:i386
Veuillez utiliser « sudo apt autoremove » pour le supprimer.
Les paquets supplémentaires suivants seront installés :
  libtext-unidecode-perl libxml-libxml-perl libxml-namespacesupport-perl
  libxml-sax-base-perl libxml-sax-perl tex-common
Paquets suggérés :
  texlive-base texlive-latex-base texlive-generic-recommended
  texinfo-doc-nonfree
Paquets recommandés :
  libxml-sax-expat-perl
Les NOUVEAUX paquets suivants seront installés :
  libtext-unidecode-perl libxml-libxml-perl libxml-namespacesupport-perl
  libxml-sax-base-perl libxml-sax-perl tex-common texinfo
ect....

-->Looks OK    

2)...."You will also need to patch the communications package to be able to
build against Octave 4."

Open communications-1.2.1.tar.gz
Introduce octave-4.4.patch in the  communications-1.2.1/src repository and
in the /communications one

leloup@leloup-VirtualBox ~/communications $ make release
Creating package version 1.2.1 release ...
rm -rf communications-1.2.1
hg archive --exclude ".hg*" --exclude Makefile --type files
communications-1.2.1
cd communications-1.2.1/doc && make all
make[1] : on entre dans le répertoire
« /home/leloup/communications/communications-1.2.1/doc »
/bin/sh images.sh > images.mk
Making texinfo comms.texi
Function commsimages, does not contain texinfo help
makeinfo --no-split -o comms.info comms.texi
make[1] : on quitte le répertoire
« /home/leloup/communications/communications-1.2.1/doc »
cd communications-1.2.1/src && autoconf -Wall
rm -rf communications-1.2.1/src/autom4te.cache
chmod -R a+rX,u+w,go-w communications-1.2.1
tar cf - --posix communications-1.2.1 | gzip -9n >
communications-1.2.1.tar.gz
rm -rf communications-1.2.1
Installing package locally ...
octave --silent --eval 'pkg install communications-1.2.1.tar.gz;'
make: octave : commande introuvable
Makefile:73 : la recette pour la cible « install » a échouée
make: *** [install] Erreur 127                                                        

Try manually from octave /home/leloup/communications  pkg install
communications-1.2.1.tar.gz
In file included from galois-def.cc:21:0:
galois.h:24:27: fatal error: octave/config.h: No such file or directory
 #include <octave/config.h>                                                                
                           ^
Something is wrong...

Regards,

Leloup





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: pkg install -forge linear-algebra.............fails

Leloup
Bonjour,

     I tried this:

leloup@leloup-VirtualBox ~/communications $
leloup@leloup-VirtualBox ~/communications $ ls
communications-1.2.1.tar.gz  doc    Makefile       NEWS
COPYING                      INDEX  Makefile.orig  octave-4.4.patch
DESCRIPTION                  inst   Makefile.rej   src
leloup@leloup-VirtualBox ~/communications $ cat octave-4.4.patch
Description: Fix FTBFS against Octave 4.4
 This patch includes temporary fixes applied to MXE octave, until a better
fix
 is implemented upstream.
Origin:
http://hg.octave.org/mxe-octave/file/1ecb1e67eaa1/src/of-communications-1-fixes.patch
       
http://hg.octave.org/mxe-octave/file/1ecb1e67eaa1/src/of-communications-2-fixes.patch
       
http://hg.octave.org/mxe-octave/file/1ecb1e67eaa1/src/of-communications-3-fixes.patch
       
http://hg.octave.org/mxe-octave/file/1ecb1e67eaa1/src/of-communications-4-fixes.patch
       
http://hg.octave.org/mxe-octave/file/1ecb1e67eaa1/src/of-communications-5-fixes.patch
Bug: https://savannah.gnu.org/bugs/?func=detailitem&item_id=47267
Reviewed-by: Sébastien Villemot <[hidden email]>
Last-Update: 2018-06-20
ect.....

I tried:

leloup@leloup-VirtualBox ~/communications $ info cat
leloup@leloup-VirtualBox ~/communications $ cat octave-4.4.patch | patch -p1

Without any more result....



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Solved: pkg install -forge linear-algebra.............fails

Leloup
For solution, see   "Problem while installing the communications package. "

Thank you to Mike and Kai    

Regards,

Leloup




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html