|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
/bin/bash: rc: command not found while installing on Solaris 10Hi guys,
I'm trying to install Apcupsd 3.14.4 on a Solaris 10 box, and got stuck with the following error during the "make" step. [...] CXX src/lib/newups.c CXX src/lib/md5.c AR src/lib/libapc.a /bin/bash: rc: command not found make[3]: *** [libapc.a] Error 127 make[2]: *** [all] Error 2 make[1]: *** [lib_DIR] Error 2 make: *** [src_DIR] Error 2 This happens when I use either "make" or "gmake". I'm including full output of both "configure" and "make" below. Can you please point me in the right direction ? ./configure --prefix=/opt/apcupsd --sbindir=/etc/opt/apcupsd/sbin --sysconfdir=/etc/opt/apcupsd --with-cgi-bin=/opt/apcupsd/cgi-bin checking for true... /usr/bin/true checking for false... /usr/bin/false checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking for egrep... egrep checking whether gcc needs -traditional... no checking for a BSD-compatible install... /etc/apc/apcupsd-3.14.4/autoconf/install-sh -c checking for gawk... no checking for mawk... no checking for nawk... nawk checking for library containing strerror... none required checking for shutdown... /usr/sbin/shutdown checking for mail... /usr/bin/mail checking for wall... /usr/sbin/wall checking for sh... /usr/bin/sh checking for GNU make... make checking for ranlib... no checking for true... /usr/bin/true checking for rm... /usr/bin/rm checking for cp... /usr/bin/cp checking for echo... /usr/bin/echo checking for ln... /usr/bin/ln checking for sed... /usr/bin/sed checking for ar... no checking for mv... /usr/bin/mv checking for abort... yes checking for fork... yes checking for calloc... yes checking for getpid... yes checking for ioctl... yes checking for kill... yes checking for rewind... yes checking for select... yes checking for setsid... yes checking for signal... yes checking for strerror... yes checking for strncmp... yes checking for strncpy... yes checking for tcgetattr... yes checking for vfprintf... yes checking for setpgrp... yes checking for snprintf... yes checking for vsnprintf... yes checking for library containing nanosleep... -lrt checking for syslog... yes checking for strftime... yes checking whether setpgrp takes no argument... yes checking for library containing socket... -lxnet checking for library containing gethostname... none required checking for library containing gethostbyname... none required checking for library containing gethostbyname_r... -lnsl checking for socklen_t... yes checking for library containing inet_addr... none required checking for strchr... yes using libc's strchr checking for strstr... yes checking for strcasecmp... yes checking for memmove... yes checking for getopt_long... yes checking for inet_pton... yes checking for localtime_r... yes 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 arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... 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 pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/types.h... (cached) yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking arpa/nameser.h usability... yes checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking whether stat file-mode macros are broken... no checking whether time.h and sys/time.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... no checking for tzname... yes checking for uid_t in sys/types.h... yes checking type of array argument to getgroups... gid_t checking for mode_t... yes checking for off_t... yes checking for pid_t... yes checking return type of signal handlers... void checking for size_t... yes checking for uid_t in sys/types.h... (cached) yes checking for socklen_t... yes checking for int32_t... 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 whether #! works in shell scripts... yes Will not install HAL policy file checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking if libsupc++ is required... yes checking if GCC supports -fno-exceptions... yes checking if GCC supports -fno-rtti... yes checking for wait... yes checking for waitpid... yes checking for wait3... yes checking for union wait... no Disabling cgi support... gcc private include directory found. configure: creating ./config.status config.status: creating autoconf/variables.mak config.status: creating platforms/apccontrol config.status: creating platforms/etc/changeme config.status: creating platforms/etc/commfailure config.status: creating platforms/etc/commok config.status: creating platforms/etc/offbattery config.status: creating platforms/etc/onbattery config.status: creating platforms/etc/apcupsd.conf config.status: creating examples/safe.apccontrol config.status: creating src/win32/Makefile config.status: creating platforms/sun/apcupsd config.status: creating platforms/sun/rc0.solaris config.status: creating platforms/sun/apccontrol config.status: creating include/config.h config.status: include/config.h is unchanged CLEAN ./src/lib/.obj CLEAN ./src/lib/.deps Configuration on Mon Jun 23 15:40:12 BST 2008: Host: sparc-sun-solaris2.10 -- sun Solaris Apcupsd version: 3.14.4 (18 May 2008) Source code location: . Install binaries: /etc/opt/apcupsd/sbin Install config files: /etc/opt/apcupsd Install man files: /usr/share/man Nologin file in: /etc PID directory: /var/run LOG dir (events, status) /etc/opt/apcupsd LOCK dir (for serial port) /var/spool/locks Power Fail dir /etc Compiler: g++ 3.4.6 Compiler flags: -g -O2 -Wall Linker: gcc Linker flags: -g -O Host and version: sun Solaris Shutdown Program: /usr/sbin/shutdown Port/Device: /dev/ttya Network Info Port (CGI): 3551 UPSTYPE apcsmart UPSCABLE smart drivers (no-* are disabled): apcsmart dumb net no-usb no-snmp pcnet no-test enable-nis: yes with-nisip: 0.0.0.0 enable-cgi: no with-cgi-bin: /opt/apcupsd/cgi-bin with-libwrap: enable-powerflute: no enable-pthreads: yes enable-dist-install: yes enable-gapcmon: no Configuration complete: Run 'make' to build apcuspd. make src src/lib CXX src/lib/apcconfig.c CXX src/lib/apcerror.c CXX src/lib/apcevents.c CXX src/lib/apcexec.c CXX src/lib/apcfile.c CXX src/lib/apclibnis.c CXX src/lib/apclock.c CXX src/lib/apclog.c CXX src/lib/apcsignal.c CXX src/lib/apcstatus.c CXX src/lib/asys.c CXX src/lib/newups.c CXX src/lib/md5.c AR src/lib/libapc.a /bin/bash: rc: command not found make[3]: *** [libapc.a] Error 127 make[2]: *** [all] Error 2 make[1]: *** [lib_DIR] Error 2 make: *** [src_DIR] Error 2 -- Kind regards, Konrad Dziedzic ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Apcupsd-users mailing list Apcupsd-users@... https://lists.sourceforge.net/lists/listinfo/apcupsd-users |
|
|
Re: /bin/bash: rc: command not found while installing on Solaris 10On Mon, Jun 23, 2008 at 10:56 AM, Konrad Dziedzic <k.dziedzic@...> wrote:
> Hi guys, > > I'm trying to install Apcupsd 3.14.4 on a Solaris 10 box, and got stuck > with the following error during the "make" step. > [...] > CXX src/lib/newups.c > CXX src/lib/md5.c > AR src/lib/libapc.a > /bin/bash: rc: command not found > make[3]: *** [libapc.a] Error 127 > make[2]: *** [all] Error 2 > make[1]: *** [lib_DIR] Error 2 > make: *** [src_DIR] Error 2 > > This happens when I use either "make" or "gmake". I'm including full > output of both "configure" and "make" below. > Can you please point me in the right direction ? You're missing 'ar' (part of GNU binutils) > checking for ar... no ./configure caught it but didn't fail. I need to fix that. Lack of 'ar' is fatal. --Adam ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Apcupsd-users mailing list Apcupsd-users@... https://lists.sourceforge.net/lists/listinfo/apcupsd-users |
|
|
Re: /bin/bash: rc: command not found while installing on Solaris 10Adam Kropelin wrote:
> > > You're missing 'ar' (part of GNU binutils) > > >> checking for ar... no >> > --Adam > Thanks for your help! It all worked well after installing GNU binutils. -- Kind regards, Konrad Dziedzic ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Apcupsd-users mailing list Apcupsd-users@... https://lists.sourceforge.net/lists/listinfo/apcupsd-users |
| Free Forum Powered by Nabble | Forum Help |