How to fix Error 1 installing Apache from source on Ubuntu - linux

I'm installing Apache on Ubuntu following this install guide
http://httpd.apache.org/docs/trunk/install.html but get an error on the last step when I run the command line below;
$ PREFIX/bin/apachectl -k start
I've noticed that the referred file (above) does not exist on my server on that path.
When I run ls -l, I get this:
-rwxr-xr-x 1 agenadinik agenadinik 7067 2011-03-22 14:08 apr-1-config
Does anyone know why this inconsistency exist?
The make install command also had this error:
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/agenadinik/httpd-2.2.17/srclib/apr-util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/agenadinik/httpd-2.2.17/srclib'
make: *** [install-recursive] Error 1
Any idea what is happening incorrectly here and how to get it fixed?
I'm using Apache version 2.2.17 with the built folder name as httpd-2.2.17 in my home directory at /home/agenadinik/.

I think its a permissions issue. Try
sudo make install

# make clean install
# service mysqld stop
this will remove the above errors

I had the same problem with the same error message, in my case it was a permission problem so I used the following command:
# sudo make install

First, you need to run make clean install in the directory where you've compiled Apache.
Then, re-compile Apache from source with all necessary options as below;
All with sudo privileges, if required.
# ./buildconf
# ./configure --enable-ssl --enable-so --with-included-apr
# make
# make install
Options used above are:
--enable-ssl to enable SSL support,
--enable-so to enable dynamically loaded modules, and
--with-included-apr to make use of the Apache Portable Runtime (APR) supporting library in the srclib directory of your Apache project.
After a successful operation, you can now effectively start your Apache server.

Related

how to install qt mqtt module, for qt open source

so I have followed every guide I can find online from stackoverflow to random websites and I cant get it to work so would love some help.
FYI: using ubuntu, Qt creator 6.4.2 which was installed by going to the website downloading the installer and following setup process.
What I have done
ran command to find directory and check if there is a file called Qt5mqtt.dll there wasnt
qmake -query QT_INSTALL_LIBS
so I cloned the github repository using the command
git cline git://code.qt.io/qt/qtmqtt.git
Now I cd into the directory where there is a file called mqtt.pro (most guides say this file is called qtmqtt.pro but mine isnt) this files is found in qtmqtt->examples->mqtt
now I run the commands
qmake
make
make install
(tried all with sudo)
Here I get errors when i run make and make install saying
cd consolepubsub/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/dave/Qt/qtmqtt/examples/mqtt/consolepubsub/consolepubsub.pro ) && make -f Makefile
make[1]: Entering directory '/home/dave/Qt/qtmqtt/examples/mqtt/consolepubsub'
( test -e Makefile.qtmqtt_pub || /usr/lib/qt5/bin/qmake -o Makefile.qtmqtt_pub /home/dave/qtmqtt/examples/mqtt/consolepubsub/qtmqtt_pub.pro ) && make -f Makefile.qtmqtt_pub
Cannot find file: /home/dave/qtmqtt/examples/mqtt/consolepubsub/qtmqtt_pub.pro.
make[1]: *** [Makefile:45: sub-qtmqtt_pub-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/home/dave/Qt/qtmqtt/examples/mqtt/consolepubsub'
make: *** [Makefile:51: sub-consolepubsub-make_first] Error 2
I have tried moving the cloned mqtt folder into where I have installed Qt,
I also tried the steps from Install MQTT Module in Open Source QT
I have also tried the mqtt library from https://github.com/emqx/qmqtt with similar results
Also if i add the QT += mqtt to my .pro file in a project I still get the error
Project ERROR: Unknown module(s) in QT: mqtt
Any help would be great, as I am very stuck and confused as what I am doing wrong

Make Install gives an error after properly cleaned and readied

I have been working on a project that requires me to use make clean, make ready, then make install to get files to run a simulation. I got make clean and make ready to work on the same area but as soon as I try to run a make install it won't work and gives this error:
ifort -w -O -tpp7 -c main.f
make: ifort: Command not found
make: *** [makefile:640: main.o] Error 127
this makes no sense to me as I don't have a Linux system and I'm running on a windows system with WSL and Ubuntu. There is a makefile if that is helpful but I don't really know what to look for in that file. Thanks in advance.

Do not have write permissions on '/usr/local/share/man/man3'

I am using Linux machine and getting YAML not installed error while installing JSON Perl module from Cpan. Any help is highly appreciable.
cpan[1]>install JSON
anifying blib/man3/JSON::backportPP::Boolean.3pm
Manifying blib/man3/JSON::backportPP.3pm
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/share/man/man3'
Do not have write permissions on '/usr/local/share/man/man3'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_site_install] Error 13
MAKAMAKA/JSON-2.90.tar.gz
/usr/bin/make install -- NOT OK
----
You may have to su to root to install the package
(Or you may want to run something like
o conf make_install_make_command 'sudo make'
to raise your permissions.Warning (usually harmless): 'YAML' not installed, will not store persistent state
and when I try to install YAMl, I get this error .
cpan[1]>install YAML
ERROR: Can't create '/usr/local/share/man/man3'
Do not have write permissions on '/usr/local/share/man/man3'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_site_install] Error 13
INGY/YAML-1.15.tar.gz
/usr/bin/make install -- NOT OK
----
You may have to su to root to install the package
(Or you may want to run something like
o conf make_install_make_command 'sudo make'
to raise your permissions.Warning (usually harmless): 'YAML' not installed, will not store persistent state
Failed during this command:
TYEMQ/Algorithm-Diff-1.1903.tar.gz : install NO
NEILB/Text-Diff-1.43.tar.gz : install NO
INGY/Spiffy-0.46.tar.gz : install NO
INGY/Test-Base-0.88.tar.gz : install NO
INGY/Test-YAML-1.06.tar.gz : install NO
INGY/YAML-1.15.tar.gz
Thanks in advance
'YAML' not installed, will not store persistent state is harmless.
As for not having permission to writing to /usr/local/share/man/man3, any reason to believe that's incorrect?
If you do have root access, did you follow the instructions in the error message? Launch cpan, and execute the following commands:
o conf make_install_make_command 'sudo make'
o conf commit
If you don't have root access, are you asking how to install modules to an arbitrary directory? I'd use perlbrew to install a perl in your home directory instead.
Are you running cpan as a regular user? No sudo or root access? That's probably why.
I have a similar problem. I add the following in the ~/.bashrc file.
vi ~/.bashrc
Then add these right after the definition of "PERL5LIB":
PERL_MB_OPT="--install_base "/home/usrname/perl5""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/usrname/perl5"; export PERL_MM_OPT;
Save, quit, and source the file:
source ~/.bashrc
Maybe you can use the below command to get the above information in terminal:
perl -I ~/perl5/lib/perl5 -Mlocal::lib

Error building Rust from source on OS X Yosemite

I recently upgraded my MacBook Pro to Yosemite and I'm having trouble building Rust from source now. When I run
$ ./configure
$ make && sudo make install
it seems to build fine, but hangs on installation at this line
rustdoc: doc/rustc/index.html
and eventually outputs this error:
task '<main>' failed at 'failed to generate documentation: couldn't open file (permission denied (Permission denied); path=doc/implementors/graphviz/trait.GraphWalk.js; mode=open; access=read)', /Users/Raevynheart/Code/rust_projects/rust/src/librustdoc/lib.rs:246
make: *** [doc/rustc/index.html] Error 101
make: *** [install] Error 2
I found this issue that might be related, but I'm unsure how to proceed. Thanks for your help.
For anyone that runs into a similar problem, here is what worked for me. If you run make help, you'll be presented with options for the make command. One of them is:
# * clean - Clean the build repertory. It is advised to run this
# command if you want to build Rust again, after an update
# of the git repository.
Running sudo make clean and then make && sudo make install got Rust ready to roll once again.

make: Nothing to be done for `STAR'

I want to test rna-star code. I have Ubuntu 12.04 on my machine.I have downloaded all the packages necessary:
sudo apt-get update
sudo apt-get install g++
sudo apt-get install make
But in the installation step I have problem running make command on STAR executable file.on the installation manual I see it says:
Unzip/tar STAR_x.x.x.tgz file into a directory of your choice <
STARsource >, cd < STARsource > and run make. The source code will be
compiled and the STAR executable will be generated.
when I run 'make STAR' it says:
make: Nothing to be done for `STAR'.
any suggestion?
This means that the "STAR" target does not exist. In a makefile, you define targets (implicit or explicit) and make takes care of building in the correct orders the dependencies for your target.
You should read documentation on this project or glance at the makefile : it's likely you need to run "make" without parameters (which is stated in your documentation excerpt), something like :
tar zxvf star...tgz
cd star...
make
So I just ran into the same problem.
Apparently the following solved it:
Redirect to source map: cd STAR-2.5.3a/source
The Makefile is in this location, after this just enter the command make.
It should start running. If you work in a cluster do not forget to edit your shell configuration before using;
export PATH=$HOME/STAR-2.5.3a/source:$PATH

Resources