Hi.

I'm trying to install stunnel on a Solaris 11, but when I put the make install command, send me the next message.


gjgom@t51ldm02:~/tmp/stunnel-5.56$ make install
Making install in src
 /usr/bin/gmkdir -p '/usr/local/bin'
  /bin/sh ../libtool   --mode=install /usr/bin/ginstall -c stunnel '/usr/local/bin'
libtool: install: /usr/bin/ginstall -c stunnel /usr/local/bin/stunnel
/usr/bin/ginstall: cannot create regular file '/usr/local/bin/stunnel': Permission denied
*** Error code 1
The following command caused the error:
list='stunnel'; test -n "/usr/local/bin" || list=; \
if test -n "$list"; then \
  echo " /usr/bin/gmkdir -p '/usr/local/bin'"; \
  /usr/bin/gmkdir -p "/usr/local/bin" || exit 1; \
fi; \
for p in $list; do echo "$p $p"; done | \
sed 's/$//' | \
while read p p1; do if test -f $p \
 || test -f $p1 \
  ; then echo "$p"; echo "$p"; else :; fi; \
done | \
sed -e 'p;s,.*/,,;n;h' \
    -e 's|.*|.|' \
    -e 'p;x;s,.*/,,;s/$//;s,x,x,;s/$//' | \
sed 'N;N;N;s,\n, ,g' | \
gawk 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  { d=$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
    if ($2 == $4) files[d] = files[d] " " $1; \
    else { print "f", $3 "/" $4, $1; } } \
  END { for (d in files) print "f", d, files[d] }' | \
while read type dir files; do \
    if test "$dir" = .; then dir=; else dir=/$dir; fi; \
    test -z "$files" || { \
    echo "  /bin/sh ../libtool   --mode=install /usr/bin/ginstall -c $files '/usr/local/bin$dir'"; \
     /bin/sh ../libtool   --mode=install /usr/bin/ginstall -c $files "/usr/local/bin$dir" || exit $?; \
    } \
; done
make: Fatal error: Command failed for target `install-binPROGRAMS'
Current working directory /export/home/gjgom/tmp/stunnel-5.56/src
*** Error code 1
The following command caused the error:
make  install-exec-am install-data-am
make: Fatal error: Command failed for target `install-am'
Current working directory /export/home/gjgom/tmp/stunnel-5.56/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS;  if {  if test -z ''; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs        ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dEDm]) skip_next=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo install-recursive | sed s/-recursive//`; \
case "install-recursive" in \
  distclean-* | maintainer-clean-*) list='src doc tools tests' ;; \
  *) list='src doc tools tests' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `install-recursive'
gjgom@t51ldm02:~/tmp/stunnel-5.56$


Can you help me?

Note: I´m install stunnel with a user no root, It affects?

Regards