Macos 安装倍频程仪表控制包时出错

Macos 安装倍频程仪表控制包时出错,macos,package,octave,Macos,Package,Octave,我正在OSX 10.10.5上运行倍频程4.0.3。当我尝试使用以下方式安装仪表控制包时: >> pkg install -forge instrument-control -verbose 我得到以下错误: clang: warning: argument unused during compilation: '-pthread' rm __gpib_trigger__.o gpib_write.o gpib_read.o __gpib_spoll__.o gpib.o __gp

我正在OSX 10.10.5上运行倍频程4.0.3。当我尝试使用以下方式安装仪表控制包时:

>> pkg install -forge instrument-control -verbose
我得到以下错误:

clang: warning: argument unused during compilation: '-pthread'
rm __gpib_trigger__.o gpib_write.o gpib_read.o __gpib_spoll__.o gpib.o __gpib_clrdevice__.o gpib_timeout.o gpib_close.o

pkg: error running `make' for the instrument-control package.
error: called from 'configure_make' in file /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/share/octave/4.0.3/m/pkg/private/configure_make.m near line 96, column 9
在构建过程中有一堆警告,但它们都是针对编译过程中被忽略的选项

我已成功安装其他软件包(控制、信号)。这可能是兼容性问题吗?最终,我需要使用倍频程与串行设备通信

更新:

一个学生用Octave 3.8.0做了同样的尝试,我用4.2.0做了同样的尝试,结果也一样

我尝试了-verbose,但似乎没有更多的信息。对于未使用的选项有一系列警告,但在(的)输出页面中没有任何提示。在顶部,我得到:

>> pkg install -forge instrument-control -verbose
mkdir (/var/tmp/oct-hJRcYn)
untar (/Users/greg/instrument-control-0.3.0.tar.gz, /var/tmp/oct-hJRcYn)
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 clang++ accepts -g... yes
checking for mkoctfile... /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose
checking for grep that handles long lines and -e... /usr/bin/grep
checking whether install_signal_handlers is in the octave namespace... no
checking whether set_signal_handler is in the octave namespace... no
checking for windows... no
checking how to run the C++ preprocessor... clang++ -E
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking linux/i2c-dev.h usability... no
checking linux/i2c-dev.h presence... no
checking for linux/i2c-dev.h... no
checking dev/iicbus/iic.h usability... no
checking dev/iicbus/iic.h presence... no
checking for dev/iicbus/iic.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking linux/parport.h usability... no
checking linux/parport.h presence... no
checking for linux/parport.h... no
checking linux/ppdev.h usability... no
checking linux/ppdev.h presence... no
checking for linux/ppdev.h... no
checking dev/ppbus/ppi.h usability... no
checking dev/ppbus/ppi.h presence... no
checking for dev/ppbus/ppi.h... no
checking dev/ppbus/ppbconf.h usability... no
checking dev/ppbus/ppbconf.h presence... no
checking for dev/ppbus/ppbconf.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking for library containing getnameinfo... none required
checking gpib/ib.h usability... no
checking gpib/ib.h presence... no
checking for gpib/ib.h... no
checking for rpcgen... yes
checking for library containing clnt_create... none required
checking rpc/rpc.h usability... yes
checking rpc/rpc.h presence... yes
checking for rpc/rpc.h... yes
checking visa/visa.h usability... no
checking visa/visa.h presence... no
checking for visa/visa.h... no
configure: creating ./config.status
config.status: creating octave-wrappers.h
config.status: creating Makefile
config.status: creating gpib/Makefile
config.status: creating tcp/Makefile
config.status: creating udp/Makefile
config.status: creating vxi11/Makefile
config.status: creating usbtmc/Makefile
config.status: creating serial/Makefile
config.status: creating parallel/Makefile
config.status: creating i2c/Makefile
config.status: creating resolvehost/Makefile
config.status: creating config.h
这似乎表明我有我需要的工具。configure_make中的相关行包括:

if (exist (fullfile (src, "Makefile"), "file"))
  [status, output] = shell (sprintf ("%s make --jobs %i --directory '%s'",
                                     scenv, jobs, src), verbose);
  if (status != 0)
    rmdir (desc.dir, "s");
    disp (output);
    error ("pkg: error running `make' for the %s package.", desc.name);
  endif
endif
命令的完整输出:

pkg install -forge instrument-control -verbose
mkdir (/var/tmp/oct-DzBx8a)
untar (/Users/greg/Dropbox/octave/instrument-control-0.3.0.tar.gz, /var/tmp/oct-DzBx8a)
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 clang++ accepts -g... yes
checking for mkoctfile... /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose
checking for grep that handles long lines and -e... /usr/bin/grep
checking whether install_signal_handlers is in the octave namespace... no
checking whether set_signal_handler is in the octave namespace... no
checking for windows... no
checking how to run the C++ preprocessor... clang++ -E
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking linux/i2c-dev.h usability... no
checking linux/i2c-dev.h presence... no
checking for linux/i2c-dev.h... no
checking dev/iicbus/iic.h usability... no
checking dev/iicbus/iic.h presence... no
checking for dev/iicbus/iic.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking linux/parport.h usability... no
checking linux/parport.h presence... no
checking for linux/parport.h... no
checking linux/ppdev.h usability... no
checking linux/ppdev.h presence... no
checking for linux/ppdev.h... no
checking dev/ppbus/ppi.h usability... no
checking dev/ppbus/ppi.h presence... no
checking for dev/ppbus/ppi.h... no
checking dev/ppbus/ppbconf.h usability... no
checking dev/ppbus/ppbconf.h presence... no
checking for dev/ppbus/ppbconf.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking for library containing getnameinfo... none required
checking gpib/ib.h usability... no
checking gpib/ib.h presence... no
checking for gpib/ib.h... no
checking for rpcgen... yes
checking for library containing clnt_create... none required
checking rpc/rpc.h usability... yes
checking rpc/rpc.h presence... yes
checking for rpc/rpc.h... yes
checking visa/visa.h usability... no
checking visa/visa.h presence... no
checking for visa/visa.h... no
configure: creating ./config.status
config.status: creating octave-wrappers.h
config.status: creating Makefile
config.status: creating gpib/Makefile
config.status: creating tcp/Makefile
config.status: creating udp/Makefile
config.status: creating vxi11/Makefile
config.status: creating usbtmc/Makefile
config.status: creating serial/Makefile
config.status: creating parallel/Makefile
config.status: creating i2c/Makefile
config.status: creating resolvehost/Makefile
config.status: creating config.h
configure:

octave instrument control package is now configured with

   BUILD SERIAL:      yes
   BUILD PARALLEL:    no
   BUILD I2C:         no
   BUILD TCP:         yes
   BUILD UDP:         yes
   BUILD USBTMC:      no
   BUILD GPIB:        no
   BUILD VXI11:       yes
   BUILD RESOLVEHOST: yes

   GPIB LIBS:
   VXI11 LIBS:
   VXI11 INCLUDE:
   VISA LIBS:
   TCP LIBS:


/Applications/Xcode.app/Contents/Developer/usr/bin/make -C serial
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C parallel
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C i2c
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C usbtmc
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C tcp
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C udp
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C gpib
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C vxi11
/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose -DHAVE_CONFIG_H -c serial_class_lin.cc
/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose -DHAVE_CONFIG_H -c parallel_class.cc
/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose -DHAVE_CONFIG_H -c i2c_class.cc
/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose -DHAVE_CONFIG_H -c usbtmc_class.cc
/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose -DHAVE_CONFIG_H -c gpib_class.cc
/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose -DHAVE_CONFIG_H -c udp_class.cc
clang++ -c  -fPIC -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis  -DHAVE_CONFIG_H parallel_class.cc -o parallel_class.o
rpcgen -M vxi11.x
clang++ -c  -fPIC -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis  -DHAVE_CONFIG_H serial_class_lin.cc -o serial_class_lin.o
/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose -DHAVE_CONFIG_H -c tcp_class.cc
clang++ -c  -fPIC -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis  -DHAVE_CONFIG_H udp_class.cc -o udp_class.o
clang++ -c  -fPIC -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis  -DHAVE_CONFIG_H i2c_class.cc -o i2c_class.o
usage:  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/rpcgen infile
clang++ -c  -fPIC -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis  -DHAVE_CONFIG_H usbtmc_class.cc -o usbtmc_class.o
clangclang      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/rpcgen [-a][-b][-C][-Dname[=value]] -i size  [-I [-K seconds]] [-A][-L][-M toolkit][-N][-T] infile
clangclang++ -c  -fPIC -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/..-I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis    -DHAVE_CONFIG_H gpib_class.cc -o gpib_class.o
:       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/rpcgen [-c | -h | -l | -m | -t | -Sc | -Ss] [-o outfile] [infile]
clang++ -c  -fPIC -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis  -DHAVE_CONFIG_H tcp_class.cc -o tcp_class.o
:       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/rpcgen [-s nettype]* [-o outfile] [infile]
clangclangwarning       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/rpcgen [-n netid]* [-o outfile] [infile]
: warning: : : : -lsuitesparseconfig: 'linker' input unusedwarning-lsuitesparseconfig: 'linker' input unusedwarningclangwarningoptions:

: : :
-A              generate svc_caller() function
: -lsuitesparseconfig: 'linker' input unused-a          generate all files, including samples
-lsuitesparseconfig: 'linker' input unused-b            backward compatibility mode (generates code for SunOS 4.1)
-lsuitesparseconfig: 'linker' input unusedwarning
-c              generate XDR routines
: clang-C               ANSI C mode

-Dname[=value]  define a symbol (same as #define)
: -lsuitesparseconfig: 'linker' input unused
warning-h               generate header file
:
-i size         size at which to start generating inline code
-lmetis: 'linker' input unused-I                generate code for inetd support in server (for SunOS 4.1)

-K seconds      server exits after K seconds of inactivity
-l              generate client side stubs
clang-L         server errors will be printed to syslog
: -m            generate server side stubs
warning-n netid generate server code that supports named netid
: clangclangclangclangclang: : warning: warning: warning: : -lmetis: 'linker' input unused-lmetis: 'linker' input unused
-lmetis: 'linker' input unused
:
: warning: warning: -lmetis: 'linker' input unused-lmetis: 'linker' input unused

-lsuitesparseconfig: 'linker' input unused
clang: warning: -lmetis: 'linker' input unused
-N              supports multiple arguments and call-by-value
-o outfile      name of the output file
-s nettype      generate server code that supports named nettype
-Sc             generate sample client code that uses remote procedures
-Ss             generate sample server code that defines remote procedures
-t              generate RPC dispatch table
-T              generate code to support RPC dispatch tables
-Y path         directory name to find C preprocessor (cpp)
clang: warning: argument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib'
clang: warning: argument unused during make[1]: compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib'clangclangclangclangclang: : *** [vxi11_clnt.c] Error 1warning: : : warning: warning: warningwarning
argument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib': argument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib': argument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib'

argument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib'


clang: warning: clangargument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib': clang
warning: : warningargument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib':
argument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib'
clangclang: : warningwarning: : : argument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib'argument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib'argument unused during compilation: '-L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib'
…还有更多的警告

/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose gpib_close.o gpib_class.o -o ../gpib_close.oct
    clang++ -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis -bundle -bundle_loader /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/octave-4.0.3  -o ../gpib_timeout.oct  gpib_timeout.o gpib_class.o   -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib/octave/4.0.3 -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib -loctinterp -loctave
    clang++ -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis -bundle -bundle_loader /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/octave-4.0.3  -o ../gpib_write.oct  gpib_write.o gpib_class.o   -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib/octave/4.0.3 -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib -loctinterp -loctave
    /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose gpib_read.o gpib_class.o-o ../gpib_read.oct
    clang++ -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis -bundle -bundle_loader /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/octave-4.0.3  -o ../gpib_close.oct  gpib_close.o gpib_class.o   -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib/octave/4.0.3 -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib -loctinterp -loctave
    clang: warning: argument unused during compilation: '-pthread'
    clang++ -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis -bundle -bundle_loader /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/octave-4.0.3  -o ../gpib_read.oct  gpib_read.o gpib_class.o   -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib/octave/4.0.3 -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib -loctinterp -loctave
    clangclang: /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose __gpib_spoll__.o gpib_class.o  -o ../__gpib_spoll__.oct
    warning: clang: warning: argument unused during compilation: '-pthread'argument unused during compilation: '-pthread'

    : warning: argument unused during compilati/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose __gpib_trigger__.o gpib_class.o  -o ../__gpib_trigger__.oct
    on: '-pthread'clang++ -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis -bundle -bundle_loader /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/octave-4.0.3  -o ../__gpib_spoll__.oct  __gpib_spoll__.o gpib_class.o   -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib/octave/4.0.3 -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib -loctinterp -loctave

    clang: warniclang++ -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis -bundle -bundle_loader /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/octave-4.0.3  -o ../__gpib_trigger__.oct  __gpib_trigger__.o gpib_class.o   -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib/octave/4.0.3 -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib -loctinterp -loctave
    ngclang: : argument unused during compilation: '-pthread'warning
    : argument unused during compilation: '-pthread'
    1 warning generated.
    /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose __udp_properties__.o udp_class.o   -o ../__udp_properties__.oct
    clang: warning: argument unused during compilation: '-pthread'
    clang++ -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis -bundle -bundle_loader /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/octave-4.0.3  -o ../__udp_properties__.oct  __udp_properties__.o udp_class.o   -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib/octave/4.0.3 -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib -loctinterp -loctave
    clang: warning: argument unused during compilation: '-pthread'
    rm udp.o udp_timeout.o udp_close.o __udp_properties__.o udp_write.o udp_read.o
    /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/mkoctfile-4.0.3 --verbose __gpib_clrdevice__.o gpib_class.o  -o ../__gpib_clrdevice__.oct
    clang++ -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave/.. -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include/octave-4.0.3/octave -I/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/include -D_THREAD_SAFE -pthread -D_REENTRANT -L/Applications/Octave.app/Contents/Resources/usr/opt/suite-sparse/lib -lsuitesparseconfig -L/Applications/Octave.app/Contents/Resources/usr/opt/metis/lib -lmetis -bundle -bundle_loader /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/bin/octave-4.0.3  -o ../__gpib_clrdevice__.oct  __gpib_clrdevice__.o gpib_class.o   -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib/octave/4.0.3 -L/Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/lib -loctinterp -loctave
    clang: warning: argument unused during compilation: '-pthread'
    rm __gpib_trigger__.o gpib_write.o gpib_read.o __gpib_spoll__.o gpib.o __gpib_clrdevice__.o gpib_timeout.o gpib_close.o

    pkg: error running `make' for the instrument-control package.
    error: called from 'configure_make' in file /Applications/Octave.app/Contents/Resources/usr/Cellar/octave/4.0.3/share/octave/4.0.3/m/pkg/private/configure_make.m near line 96, column 9

虽然这不是该问题的完整解决方案,但如果不需要VXI-11接口,这可能是一个解决办法。例如,这对我从Arduino Micro读取串行数据起到了作用

在Savannah报告错误后(请参阅),我能够在以下位置安装octave
仪器控制
软件包(请参阅):

  • 倍频程4.4.1
  • 莫哈韦马科斯酒店
显然,在上面提供的输出中也可以看到,运行时会发生错误

rpcgen -M vxi11.x
因为
rpcgen
似乎没有
-M
选项(安装需要,否则它不会编译)。我尝试为macOS安装一个新版本的
rpcgen
,其中包括
-M
(请参见
rpcgen mt
和),但没有成功。通过省略
vxi11
()的安装,我终于能够安装
仪器控制

以下是我为此解决方案所遵循的步骤:

  • Octave Forge下载仪器控制软件包(例如)

  • 展开下载的
    *.tar.gz
    文件

  • 使用您喜爱的文本编辑器在
    src/
    内部打开
    Makefile.in

  • 应该有一行(在我的例子中是第2行)指示要安装的子目录

    (例如,
    SUBDIRS=串并联i2c usbtmc tcp udp gpib vxi11解析主机hwinfo

    从列表中删除
    vxi11

    (即
    SUBDIRS=串并联i2c usbtmc tcp udp gpib resolvehost hwinfo

  • 保存更改

  • 生成新的
    .tar.gz
    文件

    $tar-czf仪器控制-0.3.1.tar.gz仪器控制-0.3.1/

    (带有软件包版本的适当编号)

  • 在倍频程内,在上述生成的
    .tar.gz
    文件的同一目录中,运行:

    >pkg安装instrument-control-0.3.1.tar.gz-详细

    (同样使用软件包版本的适当编号)

  • 安装后,可能会出现一些警告,主要原因是忽略了
    vxi11

    warning: autoload: 'vxi11.oct' is not an absolute filename
    warning: autoload: 'vxi11.oct' is not an absolute filename
    warning: autoload: 'vxi11.oct' is not an absolute filename
    warning: autoload: 'vxi11.oct' is not an absolute filename
    For information about changes from previous versions of the instrument-control package, run 'news instrument-control'.
    
    但是,
    >pkg列表
    的输出应包括
    仪表控制
    包(以及任何其他安装包):

    此外,每次首次加载
    仪表控制
    程序包(
    >pkg加载仪表控制
    )时,也可能出现一些警告。此警告再次表示缺少安装的
    vxi11


    尽管有这些警告,我仍然能够正确读取Arduino Micro的串行数据。

    请使用
    -verbose
    重试,并报告错误。我想知道你是否只收到上面添加的文本或任何真正的错误消息。很遗憾,你没有发布我要求的相关输出。但我的限制是30000个字符,而不是100317个字符,我需要将其全部发布。尽管如此,我认为我已经列出了相关的部分,但是如果你认为你能在警告中找到一个提示,那就去看看吧。顺便说一句,添加-verbose不会改变输出——它必须在默认情况下启用。有关仪器控制包安装的任何消息?我也面临同样的问题。对不起。不,我放弃了,继续前进。我们现在有了MATLAB的站点许可证,所以我不希望再攻击它了。
    Package Name        | Version | Installation directory
    --------------------+---------+-----------------------
               control  |   3.1.0 | /Users/Xavi/octave/control-3.1.0
    instrument-control  |   0.3.1 | /Users/Xavi/octave/instrument-control-0.3.1
                signal  |   1.4.0 | /Users/Xavi/octave/signal-1.4.0
              symbolic  |   2.7.1 | /Users/Xavi/octave/symbolic-2.7.1