Menu

"Installation" problem

Help
2006-10-23
2013-04-25
  • Nobody/Anonymous

    Hi,
    I'm running octplot 0.3.9 from its build directory on WindowsXP/cygwin.
    Running toggle_octplot fails, and the problem seems to be that I have
    not permission to execute octplot_command.oct from Octave.
    (chmod a+x octplot_command.oct did not do the trick)

    Any hints?
    Thanks.

     
    • Shai Ayal

      Shai Ayal - 2006-10-23

      Hi

      If you did not run "make install" you can only run octplot from the octplot-0.3.9/src directory. It is not clear to me from your message whether this is the case.

      If it is, please send a more detailed report: version of octave, how you got it (compiled or binart) and actual error message

      Shai

       
      • Nobody/Anonymous

        Hi, I downloaded octoplot and ran ./configure --with-path=/usr/local/bin && make && fltk-config --post src/octplot as suggested in the readme.mac file (have an intel mac). then i run 'make install' and this is what i get:

        :~/Documents/Utils/octplot-0.3.9 jmcphee$ make install
        Making install in fonts
        make[2]: Nothing to be done for `install-exec-am'.
        test -z "/usr/local/bin/octplot-0.3.9/fonts" || /Users/jmcphee/Documents/Utils/octplot-0.3.9/install-sh -d "/usr/local/bin/octplot-0.3.9/fonts"
        /bin/sh: line 1: /Users/jmcphee/Documents/Utils/octplot-0.3.9/install-sh: Permission denied
        make[2]: *** [install-dist_fontDATA] Error 126
        make[1]: *** [install-am] Error 2
        make: *** [install-recursive] Error 1

        the same results when i  try this as a root user.

        any ideas?

        thanks

        james

         
        • Shai Ayal

          Shai Ayal - 2006-12-24

          Hi

          If you want to install in /usr/local/bin than you must run "make install" as root.

          The "permission denied" can be either:
          1) to write into /usr/local/bin/octplot-0.3.9/fonts , in which case running as root should solve the problem (in UNIX, root has permission to do whatever she wants!)
          2) to execute the script /Users/jmcphee/Documents/Utils/octplot-0.3.9/install-sh

          So, to further debug this , please send the output of the following commands:

          ls -ld /usr/local/bin/octplot-0.3.9/fonts
          ls -ld /usr/local/bin/octplot-0.3.9
          ls -ld /usr/local/bin
          ls -l /Users/jmcphee/Documents/Utils/octplot-0.3.9/install-sh
          head /Users/jmcphee/Documents/Utils/octplot-0.3.9/install-sh

          and we'll proceed from there

          Shai

           
    • Kalle Raiskila

      Kalle Raiskila - 2006-10-24

      Sorry for my ambiguiness.

      No I didn't run "make install" (just "./configure && make"),
      yes, I start octave from the octplot-0.3.9/src directory
      The exact output is:
      octave:1> toggle_octplot
      error: Permission denied
      error: `octplot_path' undefined near line 87 column 5
      error: evaluating if command near line 86, column 3
      error: evaluating if command near line 50, column 1
      error: near line 111 of file `/cygdrive/c/USERS/octplot-0.3.9/src/toggle_octplot.m'
      octave:1> error: Permission denied

      And for reference:
      octave:1> octplot_command
      error: Permission denied

      Octave is version 2.1.73, Cygwin package.
      GCC is version 3.3.3, Cygwin package.

      Thanks.

       
    • Kalle Raiskila

      Kalle Raiskila - 2006-10-24

      Some more info:
      I found out that I had ran "make install" for octplot-0.3.5 earlier.
      Now I ran "make uninstall" for it, and then "make install" for octplot-0.3.9.
      Then, form my home dir, running "octave -f" (to disable any init files lurking somewhere) I get:

      octave:1> toggle_octplot
      octave:2> error: Permission denied

      octave:2> plot( [1:10] )
      error: Permission denied
      error: `octplot_command' undefined near line 40 column 10
      error: evaluating assignment expression near line 40, column 8
      error: evaluating for command near line 39, column 3
      error: called from `get' in file `/usr/lib/octave/2.1.73/site/octplot-0.3.9/get.
      m'
      error: evaluating argument list element number 1
      error: evaluating prefix operator `!' near line 22, column 4
      error: if: error evaluating conditional expression
      error: evaluating if command near line 22, column 1
      error: called from `__nxtplt__' in file `/usr/lib/octave/2.1.73/site/octplot-0.3
      .9/__nxtplt__.m'
      error: if: error evaluating conditional expression
      error: evaluating if command near line 131, column 3
      error: called from `plot' in file `/usr/lib/octave/2.1.73/site/octplot-0.3.9/plo
      t.m'
      octave:2>

      Octave path now contains:
      octave:2> path

      Octave's search path contains the following directories:

        /usr/lib/octave/2.1.73/site/octplot-0.3.9
        .
        /usr/lib/octave/2.1.73/site/oct/i686-pc-cygwin//
        /usr/lib/octave/site/oct/api-v13/i686-pc-cygwin//
        /usr/lib/octave/site/oct/i686-pc-cygwin//
        /usr/share/octave/2.1.73/site/m//
        /usr/share/octave/site/api-v13/m//
        /usr/share/octave/site/m//
        /usr/lib/octave/2.1.73/oct/i686-pc-cygwin//
        /usr/share/octave/2.1.73/m//

      octplot_command.oct is found in the octave path.

      HTH. Any ideas?

       
      • Shai Ayal

        Shai Ayal - 2006-10-24

        Wow

        it seems weird. Can you try to compile another oct-file and see if it works? If you have no spare oct-files lying around, go to the octplot-0.3.9/src directory and:

        mkoctfile __contourc__.cc
        octave
        addpath(".");
        which __contourc__ ## should show the one in the current dir
        help __contourc__ ## should say "help: `__contourc__' is not documented"
        __contourc__([1:10],[1:10],randn(10,10),1:5); ## should return nothing

        Note: do not "toggle_octplot"
        If this doesn't work, then there is something wrong with your octave setup -- __countourc__ is a "pure" oct file independant of octplot.
        If it does work, write again and I'll try to debug further

        Shai

         
    • Kalle Raiskila

      Kalle Raiskila - 2006-10-25

      Other, octave internal, .oct-files seem to work.
      Compiling & running __contourc__, like above, works.
      (No error, help says "not documented", and it returns "ans=[](2x0)".)

      "help octplot_command" says "permission denied" and then "sorry, not documented".
      The problem seems to be only with octplot_command...

      I'm puzzled.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.