Saturday, February 12, 2011

/usr/bin/ld: cannot open output file mplayer: Is a directory

■ Error : /usr/bin/ld: cannot open output file mplayer: Is a directory
■ OS Environment : Linux[RHEL, Centos]
■ Application: mplayer, gcc
■ Investigation : 

    I got the same error message when I was compiling mplayer. I traced the system call but didn't get any clue at the first attempt. It was same output  :

wait4(-1, /usr/bin/ld: cannot open output file mplayer: Is a directory

■  Solution : 

"ld" binary is basically makes link with various object file and at the end of the compilation it usually does it. It was linking other object files with mplayer binary but there was a mplayer directory inside the current directory. That's made this error. I have renamed the directory and copied the mplayer binary from the renamed directory to the current directory. Then successfully recompiled and installed the mplayer.

1 comment:

  1. Visit Aximtrade Mt4 Download Login To View Your Personal Area Where You Can Manage Your Trading Accounts, Set Up Your Watchlist, And Track Your Recent Trades.

    ReplyDelete