IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Octave Discussion :

Package Octave : installation


Sujet :

Octave

  1. #1
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2019
    Messages
    3
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 27
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Enseignement

    Informations forums :
    Inscription : Août 2019
    Messages : 3
    Points : 5
    Points
    5
    Par défaut Package Octave : installation
    Bonjour à toutes et à tous,

    Tout d'abord je travaille sour macOS Mojave version 10.14.5
    je cherche à installer un package octave mais je n'y arrive pas.

    Voici comment je m'y prends :

    • quand j'ouvre octave, le répertoire courant est : /users/mon_nom
    • je télécharge sur SourceForge.net mon package : signal-1.4.1.tar
    • je le déplace depuis mon dossier de téléchargements vers le répertoire : /users/mon_nom
    • je vais dans la console octave et je tape et exécute : pkg install signal-1.4.1.tar
    • j'ai une erreur qui s'affiche ( en pièce jointe )

    Lorsque je retourne dans mon répertoire /users/mon_nom j'observe qu'un dossier vide "octave" s'est créé. Je ne sais pas si c'est normal qu'il soit vide?
    En vous remerciant par avance.
    Images attachées Images attachées  

  2. #2
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2019
    Messages
    3
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 27
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Enseignement

    Informations forums :
    Inscription : Août 2019
    Messages : 3
    Points : 5
    Points
    5
    Par défaut
    In order to run some programs with Octave, you must install some packages.
    Here is how to do it.

    To download a package ( no matter which one ), two steps are needed :

    • installing
    • loading

    Before installing you have to download the package needed on the following ( official Octave ) website :

    https://octave.sourceforge.io

    The downloaded package has the following extension :

    .tar

    Then you have to put this folder in the same folder as where the Octave workspace is set. The default installation put it in the following folder :

    /disk/Users/Your_Name

    Now you can run Octave and go into the shell which is a text window starting with the following first new sentences :

    GNU Octave, version 4.0.3
    Copyright (C) 2016 John W. Eaton and others.
    This is free software; see the source code for copying conditions.
    There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.

    Octave was configured for "x86_64-apple-darwin14.5.0".

    Additional information about Octave is available at http://www.octave.org.

    Please contribute if you find this software useful.
    For more information, visit http://www.octave.org/get-involved.html

    Read http://www.octave.org/bugs.html to learn how to submit bug reports.
    For information about changes from previous versions, type 'news'.

    >>


    And you can enter install your package by typing :

    >> pkg install package_name.tar

    Then the shell will take time and can show plenty of line codes or not ( in the Octave help section it is said that nothing should appear ). If it shows warnings do not pay attention.
    In order ( or not ) to verify if the package is installed or not you can load it by typing in the shell :

    >> pkg load package_name

    If the package is not installed, the shell will answer :

    error: package package_name is not installed
    error: called from
    load_packages at line 53 column 11
    pkg at line 422 column 7

    On the contrary, if the package is installed, the shell should not answer anything.
    If you want to verify it a very last time you can ask for help about the Octave build-in function you were looking for.


    Let’s take an example, if you wanted to use the function «*findpeaks*» from the «*signal*» package, once you have downloaded and loaded it, you can type in the shell the following command :

    >> help findpeaks

    If the package is installed you will have the following answer :.

    'findpeaks' is a function from the file …

    If not, the answer would be :

    error: help: the ‘findpeaks’ function belongs to the signal package from Octave Forge
    which seems to not be installed in your system.

    Please read <http://www.octave.org/missing.html> to learn how you can
    contribute missing functionality.

    Eventually, to download some packages you have to download others before. Sometimes the Octave Shell tells you what package you have to install firstly. If not, google it.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 3
    Dernier message: 18/10/2006, 17h08
  2. Réponses: 7
    Dernier message: 28/06/2006, 16h20
  3. [EasyPHP] Comment créé un outil sous format d%u2019un package auto-installable !
    Par moonia dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 3
    Dernier message: 28/06/2006, 16h20
  4. [VB6]créer un package d'installation, package de déploiement
    Par mcay dans le forum Installation, Déploiement et Sécurité
    Réponses: 2
    Dernier message: 13/12/2005, 14h55
  5. [VB.NET] - Package d'install
    Par Seb.M dans le forum Windows Forms
    Réponses: 6
    Dernier message: 16/12/2004, 13h05

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo