LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Problem installing qt4 (https://www.linuxquestions.org/questions/ubuntu-63/problem-installing-qt4-418926/)

impeteperry 02-23-2006 09:02 PM

Problem installing qt4
 
I am trying to install Qt4.
Download - OK
./configure - OK
make - OK

sudo -c "make install" results wiith
Quote:

pete@newCompaq:/tmp/qt-x11-opensource-src-4.1.1$ sudo -c "make install"
sudo: illegal option `-c'
usage: sudo -K | -L | -V | -h | -k | -l | -v
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
{ -e file [...] | -i | -s | <command> }
pete@newCompaq:/tmp/qt-x11-opensource-src-4.1.1$
The "INSTALL" instructions
Quote:

To install the library, demos, examples, tools, and tutorials,
type:

su -c "make install"
but of course "Ubuntu" uses "sudo" in lieu of"su".
Any help would be appreciated

Dazed_75 02-23-2006 10:08 PM

Quote:

but of course "Ubuntu" uses "sudo" in lieu of"su".
Well sort of, but not exactly. They are different commands with different options. The -c means the following is a command to su but specifies a class to sudo.

su is used to change users where sudo is used to execute a command as another user. That appears to be why for su, the -c option specifies the command to ececute while sudo simply expects the command to follow (no option specifier needed).

Hoping I am right here as I am pretty much a newb at this.

impeteperry 02-23-2006 11:28 PM

Thanks, but I think I solved my problem.
In a terminal I typed "sudo nothing" When asked for my password I typed it in. got a cauldn't fine.....
I then typed "make install" and all went fine, I think.

impeteperry 03-18-2006 09:51 AM

In addition, I found if I typed:
"sudo su -c "make install"
all ran fine.


All times are GMT -5. The time now is 11:29 AM.