[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pkg install
From: |
Thomas D. Dean |
Subject: |
Re: pkg install |
Date: |
Sat, 3 Jun 2017 12:57:26 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
I have created a very simple package that demonstrates my problem.
> ls -R my-package|cat
my-package:
COPYING
DESCRIPTION
inst
my-package/inst:
funcs1
funcs2
my-package/inst/funcs1:
func1_do1.m
func1_do2.m
func1_do3.m
my-package/inst/funcs2:
func2_do1.m
func2_do2.m
func2_do3.m
> cat inst/funcs2/func2_do2.m
function [] = func2_do2()
printf("This is the do2 file\n")
endfunction
## all of the funcx_dox.m files are the same except for the name and
## do1, do2, do3.
> cat my-package/DESCRIPTION
name: my-package
Version: 1.0.0
Date: 2017-06-03
Title: My Very Own Package
Author: Old Me
Maintainer: Current Me
License: GPLv3+
Description: A package for my octave functions.
Categories: FUNCTIONS
> cat my-package/COPYING
This is liscened GLL
> pwd
~/work/my-package
> cd ..
> tar -cvzf my-package.tar.gz my-package
start command line octave
octave:1> pwd
ans = /home/tomdean/work
octave:2> pkg install -verbose my-package.tar.gz
mkdir (/tmp/oct-XNt88x)
untar (my-package.tar.gz, /tmp/oct-XNt88x)
warning: doc_cache_create: unusable help text found in file 'func1_do1'
warning: doc_cache_create: unusable help text found in file 'func1_do2'
warning: doc_cache_create: unusable help text found in file 'func1_do3'
warning: doc_cache_create: unusable help text found in file 'func2_do1'
warning: doc_cache_create: unusable help text found in file 'func2_do2'
warning: doc_cache_create: unusable help text found in file 'func2_do3'
octave:3> pkg list
Package Name | Version | Installation directory
-------------------+---------+-----------------------
control | 3.0.0 | /home/tomdean/octave/control-3.0.0
data-smoothing | 1.3.0 | /home/tomdean/octave/data-smoothing-1.3.0
general | 2.0.0 | /home/tomdean/octave/general-2.0.0
geometry | 3.0.0 | /home/tomdean/octave/geometry-3.0.0
image | 2.6.1 | /home/tomdean/octave/image-2.6.1
image-acquisition | 0.2.2 | /home/tomdean/octave/image-acquisition-0.2.2
interval | 2.1.0 | /home/tomdean/octave/interval-2.1.0
io | 2.4.7 | /home/tomdean/octave/io-2.4.7
linear-algebra | 2.2.2 | /home/tomdean/octave/linear-algebra-2.2.2
mapping | 1.2.1 | /home/tomdean/octave/mapping-1.2.1
miscellaneous | 1.2.1 | /home/tomdean/octave/miscellaneous-1.2.1
my-package | 1.0.0 | /home/tomdean/octave/my-package-1.0.0
ocs | 0.1.5 | /home/tomdean/octave/ocs-0.1.5
odebvp | 1.0.6 | /home/tomdean/octave/odebvp-1.0.6
odepkg | 0.8.5 | /home/tomdean/octave/odepkg-0.8.5
optim | 1.5.2 | /home/tomdean/octave/optim-1.5.2
quaternion | 2.4.0 | /home/tomdean/octave/quaternion-2.4.0
signal | 1.3.2 | /home/tomdean/octave/signal-1.3.2
specfun | 1.1.0 | /home/tomdean/octave/specfun-1.1.0
statistics | 1.3.0 | /home/tomdean/octave/statistics-1.3.0
struct | 1.0.14 | /home/tomdean/octave/struct-1.0.14
symbolic | 2.5.0 | /home/tomdean/octave/symbolic-2.5.0
tomdean | 1.0.0 | /home/tomdean/octave/tomdean-1.0.0
octave:4> pkg load my-package
octave:5> func2_do2
error: 'func2_do2' undefined near line 1 column 1
How do I get pkg install to recognize it needs another layer added to
the path?
Re: pkg install, Carlo De Falco, 2017/06/04