
Ubuntu日本語フォーラム

ログインしていません。
かなりの初心者です。
WINシステム(地震波形データを取り扱うための処理システム)を使いたくて
ubuntuを使い始めました。
make installができません。
ubuntuでwinsystemをインストールされた方がおられたら、
助けてほしいです。よろしくお願いいたします。
以下、エラーメッセージです。
% make install
Making install in src
make[1]: ディレクトリ '/home/bt/WIN/src' に入ります
make[2]: ディレクトリ '/home/bt/WIN/src' に入ります
/bin/mkdir -p '/usr/local/lib'
/bin/bash ../libtool --mode=install /usr/bin/install -c libwinlog.la libwinsystem.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libwinlog.so.1.1.0 /usr/local/lib/libwinlog.so.1.1.0
/usr/bin/install: cannot remove '/usr/local/lib/libwinlog.so.1.1.0': Permission denied
Makefile:1208: ターゲット 'install-libLTLIBRARIES' のレシピで失敗しました
make[2]: *** [install-libLTLIBRARIES] エラー 1
make[2]: ディレクトリ '/home/bt/WIN/src' から出ます
Makefile:2068: ターゲット 'install-am' のレシピで失敗しました
make[1]: *** [install-am] エラー 2
make[1]: ディレクトリ '/home/bt/WIN/src' から出ます
Makefile:420: ターゲット 'install-recursive' のレシピで失敗しました
make: *** [install-recursive] エラー 1
%
オフライン
anco038 さん
README に書かれてある "./configure" は実行されましたか?
winsystem 自体はよく分かりませんが、
http://eoc.eri.u-tokyo.ac.jp/WIN/
から WIN_pkg-3.0.1.tar.gz をダウンロード。
LinuxMint 18.1 64bit 環境で、
README 通りに行ったところ、コンパイルとインストールまで
無事にできました。
可能ならば、手順も記したかったのですが、
当環境では、さまざまなソフトウェアのコンパイルもしており、
既に必要なライブラリやコンパイラも入っているので、
再現性のある手順を紹介するのは難しいのでご了承ください。
あと、質問する際は、エラーメッセージを載せるのは当然なのですが、
どこで入手するソフトウェアで、どの環境でコンパイルが
失敗したかも書かれたほうが良いかと思います。
オフライン
ありがとうございます。ご回答、ご指導ありがとう御座います。
不慣れで大変申し訳ございません。
長くなりますが、環境と手順を記載させていただきます。
また、足りないことなどありましたらご指導願います。
環境は、ubuntu 16.04LTS
メモリ7.6 GiB
Intel® Celeron(R) CPU N3160 @ 1.60GHz × 4
64 ビット
483.8 GB
です。(足りますか)
手順は、
①WIN_pkg-3.0.1.tar.gzをダウンロード
②% autoconf
% autoheader
% automake -a
と行いました。
③% automake -aで以下のメッセージが出ました。
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:8: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.in:8: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
④% ./configureを行ったところ、以下のメッセージが出ました。
% ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/bt/WIN/missing: Unknown `--is-lightweight' option
Try `/home/bt/WIN/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
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 whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether ln -s works... yes
checking for g77... no
checking for xlf... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking for gawk... (cached) mawk
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 static flag -static works... yes
checking if f77 supports -c -o file.o... yes
checking if f77 supports -c -o file.o... (cached) yes
checking whether the f77 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether F77 supports -fno-automatic -finit-local-zero... yes
checking whether F77 supports -static-libgcc... yes
checking for gethostbyname in -lnsl... yes
checking for connect in -lsocket... no
checking for sqrt in -lm... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking whether stat file-mode macros are broken... no
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/ser_sync.h usability... no
checking sys/ser_sync.h presence... no
checking for sys/ser_sync.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/mtio.h usability... yes
checking sys/mtio.h presence... yes
checking for sys/mtio.h... yes
checking for limits.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/mount.h... yes
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking for int8_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for socklen_t... yes
checking for struct stat.st_blocks... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_gmtoff... yes
checking for struct statfs.f_bavail... yes
checking whether byte ordering is bigendian... no
checking whether char is unsigned... no
checking size of long... 8
checking size of int... 4
checking size of short... 2
checking size of char... 1
checking size of float... 4
checking size of double... 8
checking size of int64_t... 8
checking size of int *... 8
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking return type of signal handlers... void
checking for alarm... yes
checking for bzero... yes
checking for floor... yes
checking for gethostbyname... (cached) yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for mkdir... yes
checking for pow... yes
checking for rint... yes
checking for rmdir... yes
checking for select... yes
checking for socket... yes
checking for sqrt... yes
checking for strchr... yes
checking for strerror... yes
checking for strrchr... yes
checking for strtol... yes
checking for tzset... yes
checking for mktime... yes
checking for timelocal... yes
checking for select... (cached) yes
checking for socket... (cached) yes
checking for strerror... (cached) yes
checking for strtol... (cached) yes
checking for snprintf... yes
checking for statfs64... yes
checking for statvfs... yes
checking for mkdtemp... yes
checking for statfs... yes
checking size of struct statfs.f_bavail... long
checking compile with IPv6 support specified... yes
checking for ipv6 support... yes
checking if --enable-debug option specified... no
checking if default 4 byte sample size = 5... no
checking for statfs64... (cached) yes
checking if --enable-statfs64 option specified... no
checking compile FORTRAN program (i.e. hypomh) specified... yes
checking if --enable-memory-leak-check option specified... no
checking for bash... /bin/bash
checking for perl... /usr/bin/perl
checking for wish8.5... no
checking for wish8.4... no
checking for wish8.0jp... no
checking for wish4.2jp... no
checking for wish... /usr/bin/wish
checking for tclsh8.5... no
checking for tclsh8.4... no
checking for tclsh8.0jp... no
checking for tclsh7.6jp... no
checking for tclsh... /usr/bin/tclsh
checking for sys/mtio.h... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating etc/Makefile
config.status: creating pick/Makefile
config.status: creating tools/Makefile
config.status: creating tools/TKY2JGD/Makefile
config.status: creating man.en/Makefile
config.status: creating prog/Makefile
config.status: creating prog/w2m
config.status: creating prog/win_m
config.status: creating prog/shmx
config.status: creating prog/shmz
config.status: creating prog/winsimu
config.status: creating prog/shmck
config.status: creating prog/datej.pl
config.status: creating prog/ch2mf
config.status: creating prog/ee_manager
config.status: creating prog/final2mf
config.status: creating prog/wincd
config.status: creating prog/pick2pick
config.status: creating prog/cpraw
config.status: creating prog/wincat
config.status: creating prog/shmsimu
config.status: creating prog/ck_ls8800cst
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing src/winsystem.h commands
config.status: src/winsystem.h is unchanged
⑤% makeを行ったところ、以下のメッセージが出ました。
^[[Hmake all-recursive
make[1]: ディレクトリ '/home/bt/WIN' に入ります
Making all in src
make[2]: ディレクトリ '/home/bt/WIN/src' に入ります
make[2]: 'all' に対して行うべき事はありません.
make[2]: ディレクトリ '/home/bt/WIN/src' から出ます
Making all in prog
make[2]: ディレクトリ '/home/bt/WIN/prog' に入ります
make[2]: 'all' に対して行うべき事はありません.
make[2]: ディレクトリ '/home/bt/WIN/prog' から出ます
Making all in man
make[2]: ディレクトリ '/home/bt/WIN/man' に入ります
make[2]: 'all' に対して行うべき事はありません.
make[2]: ディレクトリ '/home/bt/WIN/man' から出ます
Making all in man.en
make[2]: ディレクトリ '/home/bt/WIN/man.en' に入ります
make[2]: 'all' に対して行うべき事はありません.
make[2]: ディレクトリ '/home/bt/WIN/man.en' から出ます
Making all in etc
make[2]: ディレクトリ '/home/bt/WIN/etc' に入ります
make[2]: 'all' に対して行うべき事はありません.
make[2]: ディレクトリ '/home/bt/WIN/etc' から出ます
Making all in pick
make[2]: ディレクトリ '/home/bt/WIN/pick' に入ります
make[2]: 'all' に対して行うべき事はありません.
make[2]: ディレクトリ '/home/bt/WIN/pick' から出ます
Making all in tools
make[2]: ディレクトリ '/home/bt/WIN/tools' に入ります
Making all in TKY2JGD
make[3]: ディレクトリ '/home/bt/WIN/tools/TKY2JGD' に入ります
make[3]: 'all' に対して行うべき事はありません.
make[3]: ディレクトリ '/home/bt/WIN/tools/TKY2JGD' から出ます
make[3]: ディレクトリ '/home/bt/WIN/tools' に入ります
make[3]: 'all-am' に対して行うべき事はありません.
make[3]: ディレクトリ '/home/bt/WIN/tools' から出ます
make[2]: ディレクトリ '/home/bt/WIN/tools' から出ます
make[2]: ディレクトリ '/home/bt/WIN' に入ります
make[2]: ディレクトリ '/home/bt/WIN' から出ます
make[1]: ディレクトリ '/home/bt/WIN' から出ます
オフライン
anco038 による投稿:
% make install
Making install in src
make[1]: ディレクトリ '/home/bt/WIN/src' に入ります
make[2]: ディレクトリ '/home/bt/WIN/src' に入ります
/bin/mkdir -p '/usr/local/lib'
/bin/bash ../libtool --mode=install /usr/bin/install -c libwinlog.la libwinsystem.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libwinlog.so.1.1.0 /usr/local/lib/libwinlog.so.1.1.0
/usr/bin/install: cannot remove '/usr/local/lib/libwinlog.so.1.1.0': Permission denied
make install
ではなく、
sudo make install
ではないでしょうか?
オフライン
お返事、ご指導ありがとうございます。
色々、お手数をお掛けいたしました。
インストールできると教えて頂いたおかげで、
できるという確信のもと、エラーを出来る限り潰していったところ
なんとか、無事にインストールすることができました。
また、何かとお聞きうことが多々あると思います。
よろしくお願いいたします。
本当にありがとう御座います。
オフライン