I just downloaded the puppet enterprise installer for my OS version from the puppetlabs website and the installer seems to fail immediately. Why is it failing:

sudo ./puppet-enterprise-installer
basename: missing operand
Try `basename --help' for more information.

This is the only output from the installer before it stops.

I am running Centos 6 64bit.

  • That looks like a bug. That's why I was asking whether you downloaded from their site. That error means that basename was run with no target but we can't help without having access to the script you're running. – terdon Mar 2 '15 at 20:49
  • Installer script: pastebin.com/4arN31WJ – awmusic12635 Mar 2 '15 at 20:56
  • OK, that makes no sense. The only basename call there is run on $0 which can't ever be empty (it's the name of the running script) as far as I know. Try creating a file with this line: basename ${0?}, save it as foo and then run /bin/bash foo. Does that also give an error? – terdon Mar 2 '15 at 21:04
  • No error, just outputs "foo" – awmusic12635 Mar 2 '15 at 21:17
  • Please run sudo bash -x ./puppet-enterprise-installer and post the resulting trace. – Gilles 'SO- stop being evil' Mar 3 '15 at 0:11

I had the same issue (centos 6 64 bit). I found some of the system packages missing. I got through by running:

yum install -y pciutils system-logos which libxml2 dmidecode net-tools virt-what apr apr-util curl mailcap libjpeg libtool-ltdl unixODBC libxslt zlib

make sure you have the dependencies installed. See - https://docs.puppetlabs.com/pe/latest/install_system_requirements.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.