Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install yum on my mac. This is what I am doing.

tar -xvzf yum-2.0.7.tar.gz
cd yum-2.0.7
./configure
make
sudo make install

The last command sudo make install runs into the errors below:

make -C .. installdirs
./mkinstalldirs /usr/bin /etc /usr/share/yum /usr/man/man8 /usr/man/man5 /var/cache/yum/
/usr/bin/install -c -m 644 ../docs/yum.8 /usr/man/man8/yum.8
/usr/bin/install -c -m 644 ../docs/yum-arch.8 /usr/man/man8/yum-arch.8
/usr/bin/install -c -m 644 ../docs/yum.conf.5 /usr/man/man5/yum.conf.5
/usr/bin/install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 file2
   install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 ... fileN directory
   install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 file2
   install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 ... fileN directory
   install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 file2
   install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 ... fileN directory
   install -d [-v] [-g group] [-m mode] [-o owner] directory ...
 /usr/bin/install: illegal option -- -
  usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 file2
   install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 ... fileN directory
   install -d [-v] [-g group] [-m mode] [-o owner] directory ...
  make[1]: *** [install] Error 64
  make: *** [install] Error 2

And when I run yum command it says

  File "/usr/bin/yum", line 22, in <module>
    import yummain
  File "/usr/share/yum/yummain.py", line 22, in <module>
    import clientStuff
  File "/usr/share/yum/clientStuff.py", line 18, in <module>
    import rpm
ImportError: No module named rpm

Could someone please help me fixing this.

Thanks a lot.

share|improve this question

migrated from stackoverflow.com Jun 21 '13 at 18:37

This question came from our site for professional and enthusiast programmers.

This might not be the answer you're looking for. But I would recommend AGAINST you installing yum on your Mac.

Macports and Homebrew are much better OSX specific alternatives.

share|improve this answer
    
I wholeheartedly agree. I personally prefer MacPorts, but to each his own. Both MacPorts and Homebrew have extensive, well-tested package collections, are mature projects, and have wide user bases. I actually didn't know yum had been ported to OSX until I read your post. – MattDMo Jun 21 '13 at 18:47
    
Thanks for your response. – Stuart Mike Jun 21 '13 at 19:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .