Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation of doxygen and error in make command

I am trying to install doxygen in my CentOs 6.3 machine and I am getting this error. Any ideas??

[root@dell1 doxygen-1.8.3.1]# make install
/usr/bin/install -d /usr/local/bin
/usr/bin/install -d /usr/local/doc/doxygen
/usr/bin/install -m 755 bin/doxygen    /usr/local/bin
/usr/bin/install -m 755 bin/doxytag    /usr/local/bin
/usr/bin/install: cannot stat `bin/doxytag': No such file or directory
make: *** [install] Error 1
like image 747
tetartos Avatar asked Feb 22 '13 09:02

tetartos


4 Answers

Bash isn't wrong in complaining:

/usr/bin/install: cannot stat `bin/doxytag': No such file or directory

It happens to be that the compiled file doxytag was not included in the downloaded tar file. So when you try to make, it couldn't find that file. To make it successfully, you have two options:

Compile the doxytag.py file from here and paste it to doxygen's bin directory

You can compile the python file doxytag.py from the above link using:

python -m compileall path_to_the_file/doxytag.py

It should generate a python compiled executable with .pyc extension. Now move this file to your doxygen-version folder. For example,

mv doxytag.pyc your_path/doxygen-1.8.5/bin/doxytag

Or alternatively download the doxytag from here

Now when you try to make, it will complete without any errors.

Comment out the line that requires doxytag file from the Makefile

You may read about the doxytag utility from https://www.star.bnl.gov/public/comp/sofi/doxygen/doxytag_usage.html.

If you do not really require this utility in your documentation, simply skip it by commenting out or deleting the line in the Makefile present in the doxygen-1.8.5(as per your version) directory by:

#$(INSTTOOL) -m 755 bin/doxytag    $(INSTALL)/bin

And then run the make command.

like image 152
KodingKid Avatar answered Sep 23 '22 00:09

KodingKid


At first, you'll need to install some dependencies

sudo apt install cmake
sudo apt install flex
sudo apt install bison

After that, you execute the commands below, it'll probably works fine.

git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd builda
cmake -G "Unix Makefiles" ..
make
sudo make install
like image 26
Pedro Augusto Avatar answered Sep 25 '22 00:09

Pedro Augusto


The doxygen make is strange: "make install" will not invoke "make", so you need to do a

make
make install

to first generate the binaries and then install them.

like image 39
fceller Avatar answered Sep 24 '22 00:09

fceller


A cannot stat error literally means the file(s) or directory does not exist - or you do not have the correct permissions. If you know where the directory is located - start looking there for permissions and file existence.

like image 43
emallove Avatar answered Sep 23 '22 00:09

emallove