Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I went to install ACPI and the program said I do not have permissions to ./Makefile. I went to root under my screen name and still the same. I also logged into the computer directly under root and still the same.
Anyone have any ideas of what is going on. I am trying to monitor my laptop battery.
Thanks,
Steve
from the way you are wording this it seems your problem is that you are never actually becoming root. type 'su' and then your root password. Once this is done then try to run make.
hrmm... (just thought of something)
Are you tring to run ./Makefile ??
If you are building from source (which I assume you are) you will want to run 'make' then 'make install'
I used the make command and this is the script that came back. It is long with numerous errors, for what I have no idea. Pleas help me
Thanks,
Steve
for i in ospmd libpower gui; do make -C $i all; done;
make[1]: Entering directory `/home/steve/Desktop/ospmd-20021122/ospmd/ospmd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/steve/Desktop/ospmd-20021122/ospmd/ospmd'
make[1]: Entering directory `/home/steve/Desktop/ospmd-20021122/ospmd/libpower'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/steve/Desktop/ospmd-20021122/ospmd/libpower'
make[1]: Entering directory `/home/steve/Desktop/ospmd-20021122/ospmd/gui'
g++ -c -pipe -g -fno-strength-reduce -Wall -I/usr/lib/qt-3.0.5/include -I/usr/include/kde -I../inc -D_OSPMD_GUI_BUTTON_CONFIG_DEBUG -D_OSPMD_GUI_BATTERY_CONFIG_DEBUG -D_OSPMD_GUI_BATDET_CONFIG_DEBUG -D_OSPMD_GUI_BATTERY_CRITALARM_DEBUG -D_OSPMD_GUI_GENINFO_DEBUG -D_OSPMD_GUI_THREAD_DEBUG -D_OSPMD_GUI_BATTERY_LOWALARM_DEBUG -D_OSPMD_GUI_NOTIFY_OBJ_DEBUG -D_OSPMD_GUI_PROPERTYSHEET_DEBUG -D_OSPMD_GUI_PROPSHEET_MAIN_DEBUG PropertySheetMain.cpp -o PropertySheetMain.o
In file included from PropertySheetMain.cpp:115:
PropertySheet.h:141:26: qapplication.h: No such file or directory
PropertySheet.h:142:21: qthread.h: No such file or directory
PropertySheet.h:143:21: qwidget.h: No such file or directory
PropertySheet.h:144:25: qmessagebox.h: No such file or directory
PropertySheet.h:145:24: qtabdialog.h: No such file or directory
PropertySheet.h:146:21: qstring.h: No such file or directory
PropertySheet.h:147:19: qfont.h: No such file or directory
PropertySheet.h:148:23: qfileinfo.h: No such file or directory
PropertySheet.h:149:25: qpushbutton.h: No such file or directory
PropertySheet.h:150:21: qslider.h: No such file or directory
PropertySheet.h:151:19: qdial.h: No such file or directory
PropertySheet.h:152:19: qhbox.h: No such file or directory
PropertySheet.h:153:19: qvbox.h: No such file or directory
PropertySheet.h:154:23: qtextview.h: No such file or directory
PropertySheet.h:155:22: qpalette.h: No such file or directory
PropertySheet.h:156:20: qframe.h: No such file or directory
PropertySheet.h:157:21: qlayout.h: No such file or directory
PropertySheet.h:158:23: qgroupbox.h: No such file or directory
PropertySheet.h:159:24: qhgroupbox.h: No such file or directory
PropertySheet.h:160:24: qvgroupbox.h: No such file or directory
PropertySheet.h:161:21: qpixmap.h: No such file or directory
PropertySheet.h:162:20: qlabel.h: No such file or directory
PropertySheet.h:163:23: qlineedit.h: No such file or directory
PropertySheet.h:164:23: qdatetime.h: No such file or directory
PropertySheet.h:165:26: qbuttongroup.h: No such file or directory
PropertySheet.h:166:27: qvbuttongroup.h: No such file or directory
PropertySheet.h:167:27: qhbuttongroup.h: No such file or directory
PropertySheet.h:168:23: qcheckbox.h: No such file or directory
PropertySheet.h:169:26: qradiobutton.h: No such file or directory
PropertySheet.h:170:22: qlistbox.h: No such file or directory
PropertySheet.h:171:24: qlcdnumber.h: No such file or directory
PropertySheet.h:172:25: qmotifstyle.h: No such file or directory
PropertySheet.h:173:23: qcdestyle.h: No such file or directory
PropertySheet.h:174:27: qwindowsstyle.h: No such file or directory
PropertySheet.h:175:28: qplatinumstyle.h: No such file or directory
PropertySheet.h:176:23: qsgistyle.h: No such file or directory
In file included from PropertySheet.h:183,
from PropertySheetMain.cpp:115:
GenInfoPage.h:134:21: qobject.h: No such file or directory
GenInfoPage.h:135:21: qwidget.h: No such file or directory
GenInfoPage.h:136:19: qfont.h: No such file or directory
GenInfoPage.h:137:21: qstring.h: No such file or directory
GenInfoPage.h:138:20: qlabel.h: No such file or directory
In file included from PropertySheet.h:183,
from PropertySheetMain.cpp:115:
GenInfoPage.h:143: error: syntax error before `{' token
GenInfoPage.h:146: error: destructors must be member functions
GenInfoPage.h:147: error: syntax error before `*' token
GenInfoPage.h:148: error: syntax error before `*' token
GenInfoPage.h:149: error: syntax error before `*' token
In file included from PropertySheet.h:184,
from PropertySheetMain.cpp:115:
ButtonPage.h:137:21: qobject.h: No such file or directory
ButtonPage.h:138:21: qwidget.h: No such file or directory
ButtonPage.h:139:19: qfont.h: No such file or directory
ButtonPage.h:140:21: qstring.h: No such file or directory
ButtonPage.h:141:20: qlabel.h: No such file or directory
ButtonPage.h:142:23: qcombobox.h: No such file or directory
ButtonPage.h:143:25: qpushbutton.h: No such file or directory
In file included from PropertySheet.h:184,
from PropertySheetMain.cpp:115:
ButtonPage.h:148: error: syntax error before `{' token
ButtonPage.h:153: error: destructors must be member functions
ButtonPage.h:154: error: syntax error before `*' token
ButtonPage.h:155: error: syntax error before `*' token
ButtonPage.h:156: error: syntax error before `*' token
ButtonPage.h:157: error: syntax error before `*' token
ButtonPage.h:158: error: syntax error before `*' token
ButtonPage.h:159: error: syntax error before `*' token
ButtonPage.h:160: error: syntax error before `*' token
ButtonPage.h:161: error: syntax error before `*' token
ButtonPage.h:162: error: syntax error before `*' token
ButtonPage.h:163: error: syntax error before `*' token
ButtonPage.h:164: error: syntax error before `*' token
ButtonPage.h:165: error: syntax error before `*' token
ButtonPage.h:166: error: syntax error before `*' token
ButtonPage.h:167: error: syntax error before `*' token
ButtonPage.h:175: error: syntax error before `protected'
In file included from PropertySheet.h:185,
from PropertySheetMain.cpp:115:
BatteryPage.h:133:24: qnamespace.h: No such file or directory
BatteryPage.h:134:21: qwidget.h: No such file or directory
BatteryPage.h:135:25: qmessagebox.h: No such file or directory
BatteryPage.h:136:24: qtabdialog.h: No such file or directory
BatteryPage.h:137:21: qstring.h: No such file or directory
BatteryPage.h:138:19: qfont.h: No such file or directory
BatteryPage.h:139:23: qfileinfo.h: No such file or directory
BatteryPage.h:140:25: qpushbutton.h: No such file or directory
BatteryPage.h:141:21: qslider.h: No such file or directory
BatteryPage.h:142:19: qdial.h: No such file or directory
BatteryPage.h:143:19: qhbox.h: No such file or directory
BatteryPage.h:144:19: qvbox.h: No such file or directory
BatteryPage.h:145:23: qtextview.h: No such file or directory
BatteryPage.h:146:22: qpalette.h: No such file or directory
BatteryPage.h:147:20: qframe.h: No such file or directory
BatteryPage.h:148:21: qlayout.h: No such file or directory
BatteryPage.h:149:23: qgroupbox.h: No such file or directory
BatteryPage.h:150:24: qhgroupbox.h: No such file or directory
BatteryPage.h:151:24: qvgroupbox.h: No such file or directory
BatteryPage.h:152:21: qpixmap.h: No such file or directory
BatteryPage.h:153:20: qlabel.h: No such file or directory
BatteryPage.h:154:23: qlineedit.h: No such file or directory
BatteryPage.h:155:23: qdatetime.h: No such file or directory
BatteryPage.h:156:26: qbuttongroup.h: No such file or directory
BatteryPage.h:157:27: qvbuttongroup.h: No such file or directory
BatteryPage.h:158:27: qhbuttongroup.h: No such file or directory
BatteryPage.h:159:23: qcheckbox.h: No such file or directory
BatteryPage.h:160:26: qradiobutton.h: No such file or directory
BatteryPage.h:161:22: qlistbox.h: No such file or directory
BatteryPage.h:162:24: qlcdnumber.h: No such file or directory
BatteryPage.h:163:26: qapplication.h: No such file or directory
In file included from PropertySheet.h:185,
from PropertySheetMain.cpp:115:
BatteryPage.h:173: error: syntax error before `{' token
BatteryPage.h:176: error: syntax error before `const'
BatteryPage.h:177: error: destructors must be member functions
BatteryPage.h:178: error: syntax error before `*' token
BatteryPage.h:179: error: syntax error before `*' token
BatteryPage.h:180: error: syntax error before `*' token
BatteryPage.h:184: error: syntax error before `{' token
BatteryPage.h:188: error: destructors must be member functions
BatteryPage.h:189: error: syntax error before `*' token
BatteryPage.h:190: error: syntax error before `*' token
BatteryPage.h:191: error: syntax error before `*' token
BatteryPage.h:192: error: syntax error before `*' token
BatteryPage.h:193: error: syntax error before `*' token
BatteryPage.h:194: error: syntax error before `*' token
BatteryPage.h:195: error: syntax error before `*' token
BatteryPage.h:196: error: syntax error before `*' token
BatteryPage.h:197: error: syntax error before `*' token
BatteryPage.h:198: error: syntax error before `*' token
BatteryPage.h:199: error: syntax error before `*' token
BatteryPage.h:200: error: syntax error before `*' token
BatteryPage.h:203: error: syntax error before `}' token
BatteryPage.h:210: error: syntax error before `{' token
BatteryPage.h:215: error: destructors must be member functions
BatteryPage.h:227: error: syntax error before `*' token
BatteryPage.h:228: error: syntax error before `*' token
BatteryPage.h:229: error: syntax error before `*' token
BatteryPage.h:230: error: syntax error before `*' token
BatteryPage.h:231: error: syntax error before `*' token
BatteryPage.h:232: error: syntax error before `*' token
BatteryPage.h:233: error: syntax error before `*' token
BatteryPage.h:234: error: syntax error before `*' token
BatteryPage.h:244: error: syntax error before `private'
BatteryPage.h:252: error: syntax error before `protected'
BatteryPage.h:258: error: syntax error before `private'
In file included from PropertySheet.h:186,
from PropertySheetMain.cpp:115:
PowerPage.h:134:21: qobject.h: No such file or directory
PowerPage.h:135:21: qwidget.h: No such file or directory
PowerPage.h:136:20: qcolor.h: No such file or directory
PowerPage.h:137:29: qabstractlayout.h: No such file or directory
PowerPage.h:138:21: qlayout.h: No such file or directory
PowerPage.h:139:20: qlabel.h: No such file or directory
PowerPage.h:140:21: qstring.h: No such file or directory
PowerPage.h:141:21: qbutton.h: No such file or directory
PowerPage.h:142:25: qpushbutton.h: No such file or directory
PowerPage.h:143:23: qgroupbox.h: No such file or directory
PowerPage.h:144:27: qrangecontrol.h: No such file or directory
PowerPage.h:145:21: qslider.h: No such file or directory
PowerPage.h:146:23: qcombobox.h: No such file or directory
PowerPage.h:147:22: qpalette.h: No such file or directory
PowerPage.h:148:25: qmessagebox.h: No such file or directory
In file included from PropertySheet.h:186,
from PropertySheetMain.cpp:115:
PowerPage.h:153: error: syntax error before `{' token
PowerPage.h:158: error: destructors must be member functions
PowerPage.h:159: error: syntax error before `*' token
PowerPage.h:160: error: syntax error before `*' token
PowerPage.h:161: error: syntax error before `*' token
PowerPage.h:164: error: syntax error before `*' token
PowerPage.h:165: error: syntax error before `*' token
PowerPage.h:166: error: syntax error before `*' token
PowerPage.h:167: error: syntax error before `*' token
PowerPage.h:168: error: syntax error before `*' token
PowerPage.h:169: error: syntax error before `*' token
PowerPage.h:170: error: syntax error before `*' token
PowerPage.h:171: error: syntax error before `*' token
PowerPage.h:172: error: syntax error before `*' token
PowerPage.h:173: error: syntax error before `*' token
PowerPage.h:174: error: syntax error before `*' token
PowerPage.h:175: error: syntax error before `*' token
PowerPage.h:178: error: syntax error before `*' token
PowerPage.h:179: error: syntax error before `*' token
PowerPage.h:180: error: syntax error before `*' token
PowerPage.h:181: error: syntax error before `*' token
PowerPage.h:182: error: syntax error before `*' token
PowerPage.h:183: error: syntax error before `*' token
PowerPage.h:184: error: syntax error before `*' token
PowerPage.h:185: error: syntax error before `*' token
PowerPage.h:186: error: syntax error before `*' token
PowerPage.h:187: error: syntax error before `*' token
PowerPage.h:188: error: syntax error before `*' token
PowerPage.h:189: error: syntax error before `*' token
PowerPage.h:190: error: syntax error before `*' token
PowerPage.h:191: error: syntax error before `*' token
PowerPage.h:193: error: syntax error before `*' token
PowerPage.h:195: error: syntax error before `*' token
PowerPage.h:196: error: syntax error before `*' token
PowerPage.h:197: error: syntax error before `*' token
PowerPage.h:198: error: syntax error before `*' token
PowerPage.h:199: error: syntax error before `*' token
PowerPage.h:200: error: syntax error before `*' token
PowerPage.h:215: error: syntax error before `protected'
PowerPage.h:218: error: `QComboBox' was not declared in this scope
PowerPage.h:218: error: syntax error before `,' token
PowerPage.h:226: error: syntax error before `private'
PowerPage.h:231: error: syntax error before `}' token
In file included from PropertySheetMain.cpp:115:
PropertySheet.h:192: error: syntax error before `{' token
PropertySheet.h:197: error: destructors must be member functions
PropertySheet.h:200: error: syntax error before `*' token
PropertySheet.h:201: error: syntax error before `*' token
PropertySheet.h:202: error: syntax error before `*' token
PropertySheet.h:205: error: 'GenInfo' is used as a type, but is not defined as
a type.
PropertySheet.h:206: error: 'ButtonPage' is used as a type, but is not defined
as a type.
PropertySheet.h:207: error: 'Batteries' is used as a type, but is not defined
as a type.
PropertySheet.h:208: error: 'PowerPage' is used as a type, but is not defined
as a type.
PropertySheet.h:210: error: syntax error before `public'
PropertySheet.h:216: error: syntax error before `}' token
In file included from PropertySheet.h:219,
from PropertySheetMain.cpp:115:
GUIThread.h:118: error: syntax error before `{' token
GUIThread.h:121: error: destructors must be member functions
GUIThread.h:124: error: syntax error before `protected'
GUIThread.h:133: error: syntax error before `*' token
GUIThread.h:134: error: syntax error before `*' token
GUIThread.h:136: error: syntax error before `}' token
PropertySheetMain.cpp:125: error: syntax error before `*' token
PropertySheetMain.cpp: In function `int main(int, char**)':
PropertySheetMain.cpp:131: error: `ev' undeclared (first use this function)
PropertySheetMain.cpp:131: error: (Each undeclared identifier is reported only
once for each function it appears in.)
PropertySheetMain.cpp:132: error: `propSheet' undeclared (first use this
function)
PropertySheetMain.cpp:133: error: `QApplication' undeclared (first use this
function)
PropertySheetMain.cpp:133: error: `aQapp' undeclared (first use this function)
PropertySheetMain.cpp:135: error: syntax error before `(' token
PropertySheetMain.cpp:138: error: syntax error before `(' token
PropertySheetMain.cpp:142: error: `ospm_gui_mutex' undeclared (first use this
function)
PropertySheetMain.cpp:143: error: syntax error before `;' token
PropertySheetMain.cpp:158: error: syntax error before `(' token
make[1]: *** [PropertySheetMain.o] Error 1
make[1]: Leaving directory `/home/steve/Desktop/ospmd-20021122/ospmd/gui'
make: *** [all] Error 2
[root@co-widfld-u1-c3a-132 ospmd]#
You don't have Qt installed. That's what all those 'qblahblah.h not found' errors are about. If you install Qt you should be fine. Or specifically Qt-Devel if you're in rpm / apt-get land.
No idea if it needs dependencies, I steer well clear of horrible packages. Far better to compile from source (although Qt takes an AGE to compile...).
try www.freshrpms.net or www.pbone.net.
You may well need to install both Qt and Qt-devel, though if you're running KDE Qt (not the devel one) will already be installed cos KDE uses Qt.
after all that, it still did not work, and when installing Qt, it too had errors. It would be nice to have a file or program that was all complete and worked the first time. This is ridiculous. I am so sick of programs that come half way done or complete
I am running slackware 10, kernel 2.4.26 on a dell inspiron 1000.
I have qt and kde installed.
I am getting the following error
Code:
In file included from PropertySheetMain.cpp:115:
PropertySheet.h:200: error: syntax error before `*' token
make[1]: *** [PropertySheetMain.o] Error 1
The README file said to run "gui/ospm_gui". This file is not located in the gui directory. I am assuming it is because the initial install did not work properly??? I can run "./ospmd" without any errors though.
I attempted to look up the error on google and this was the only page that showed up. Any suggestions or fixes or even a little nudge in the right direction would be appreciated. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.