Doxygen-找不到FLEX(缺少:FLEX_EXECUTABLE) [英] Doxygen - Could NOT find FLEX (missing: FLEX_EXECUTABLE)
问题描述
我知道这里有非常相似的措词问题,但是我在那里找不到我的问题的答案,所以我们开始:
我试图查看我的哪些C ++方法被其他人调用,因此在谷歌搜索后找到了Doxygen.
在他们的页面上,安装过程非常简单:
I know there are very similar worded questions on here, but I could not find an answer to my question there, so here we go:
I'm trying to see which of my C++ methods are called by others so I found Doxygen after googling.
On their page the installation seems pretty straightforward:
如果您安装了必要的构建工具(例如g ++,python, cmake,flex,bison),则应执行以下操作以获取初始 存储库的副本:
If you have the necessary build tools installed (i.e. g++, python, cmake, flex, bison), you should do the following to get the initial copy of the repository:
git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
cmake -G "Unix Makefiles" ..
make
git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
cmake -G "Unix Makefiles" ..
make
直到cmake -G "Unix Makefiles" ..
一切正常,然后在该命令上发生以下错误:
Until cmake -G "Unix Makefiles" ..
everything goes well, then on that command following error occurs:
test@test-VirtualBox:~/doxygen/build$ cmake -G "Unix Makefiles" ..
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find FLEX (missing: FLEX_EXECUTABLE)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindFLEX.cmake:230 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:84 (find_package)
我认为:没什么大不了,为什么要开箱即用...似乎我必须安装flex
.
所以我做:
sudo apt-get update
sudo apt-get install flex
sudo apt autoremove
(因为安装后命令行建议我这样做)
I thought: No big deal, why should anything work out of the box...seems I have to install flex
.
So I do:
sudo apt-get update
sudo apt-get install flex
sudo apt autoremove
(because after installation the command line recommended me to do this)
现在在我看来已经安装了flex,我再次尝试
所以现在我慢慢地生气了,并向Stack Overflow寻求帮助:D
我究竟做错了什么???
Now it seems to me that flex has been installed, I try cmake -G "Unix Makefiles" ..
again...same error. I close the command line, start it up again, try it again - same error...
So now I'm slowly gettin' pissed and turn to Stack Overflow for help :D
What am I doing wrong???
由于我看到有人在另一个问题的评论中问这个问题,所以这是flex
的输出:
And because I saw someone asking this in the other question's comment, here's the output of flex
:
test@test-VirtualBox:~/doxygen/build$ flex
The program 'flex' can be found in the following packages:
* flex
* flex-old
Try: sudo apt install <selected package>
推荐答案
似乎apt autoremove
确实删除了我在上一步中刚刚安装的软件包.
所以对我有用的是:
It seems like apt autoremove
really removed the package I just installed in the previous step.
So what worked for me was:
git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
这些是新的:
sudo apt-get install flex
sudo apt-get install bison
cmake -G "Unix Makefiles" ..
make
...但是,恐怖当然不会到此结束,请参见我的下一个问题:D
...but of course the horror wouldn't end there, see my next question :D
这篇关于Doxygen-找不到FLEX(缺少:FLEX_EXECUTABLE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!