Thursday, February 22, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 12473  / 3 Years ago, wed, may 26, 2021, 12:49:50

I am in desperate need to install apache on my Ubuntu 12.04. I searched on the web and tried to follow the instructions given in: https://help.ubuntu.com/10.04/serverguide/httpd.html



Log from my terminal pasted here for your reference:



jacob@jacob-laptop:~$ sudo apt-get install apache2 
[sudo] password for jacob:
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up crossplatformui (1.0.27) ...
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service acpid restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop acpid ; start acpid. The restart(8) utility is also available.
acpid stop/waiting
acpid start/running, process 8643
package libqtgui4 exist
QT_VERSION = 4
make -C /lib/modules/3.2.0-25-generic/build M=/usr/local/bin/ztemtApp/zteusbserial/below2.6.27 modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-25-generic'
CC [M] /usr/local/bin/ztemtApp/zteusbserial/below2.6.27/usb-serial.o
/usr/local/bin/ztemtApp/zteusbserial/below2.6.27/usb-serial.c:34:28: fatal error: linux/smp_lock.h: No such file or directory
compilation terminated.
make[2]: *** [/usr/local/bin/ztemtApp/zteusbserial/below2.6.27/usb-serial.o] Error 1
make[1]: *** [_module_/usr/local/bin/ztemtApp/zteusbserial/below2.6.27] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-25-generic'
make: *** [modules] Error 2
dpkg: error processing crossplatformui (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
crossplatformui
E: Sub-process /usr/bin/dpkg returned an error code (1)

More From » 12.04

 Answers
2

The output above shows that you have already installed apache - a line near the top says:



apache2 is already the newest version.


So apache is already installed, you don't need to do anything else.



The rest of the output is apt trying to finish installing another package:



Setting up crossplatformui (1.0.27) ...


This is hitting a problem, and it would be good to clear up this mess. Your options are:




  • remove crossplatformui - sudo apt-get remove crossplatformui

  • install the dependencies that it needs to compile



It is failing to compile because:



... fatal error: linux/smp_lock.h: No such file or directory


and a quick search for ubuntu linux/smp_lock.h brings up this answer which suggests you need to edit the source of crossplatformui and change linux/smp_lock.h to linux/smp.h



You should also ensure you have the build-essential package installed, though as you already have a compiler you probably do already.


[#37785] Thursday, May 27, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rtbrbab

Total Points: 461
Total Questions: 126
Total Answers: 117

Location: Saudi Arabia
Member since Fri, Jul 1, 2022
2 Years ago
rtbrbab questions
Fri, May 5, 23, 14:22, 10 Months ago
Tue, Nov 16, 21, 14:41, 2 Years ago
Thu, Mar 23, 23, 20:47, 1 Year ago
Sat, Jun 18, 22, 21:36, 2 Years ago
;