-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build progress and unresolved Build error: "/usr/bin/ld: cannot find -lregex" #14
Comments
Did you installed regex library ? I think it is libboost-regex-dev packages. |
Cool. I'll give that a shot. |
I installed libboost-regex-dev (and all the other dependencies that apt decided to get) but I'm getting the same build error. |
Please check regcomp, regexec, regerror, regfree are installed in your system. |
That's already installed.
Same Build error.
|
Sorry for inconvenience. Try to install libnfsidmap-regex, |
Installed libnfsidmap-regex. |
Since I started with a fresh Ubuntu-Focal install and followed Jonas231 build/install instructions above, I'm not sure what the deal is except for maybe something with Ubuntu-Focal. If I was going to try this again with a different linux distro, what should I use? Straight Debian-Testing maybe? Mint? |
Just tried with Debian 11.2.0. (debian-11.2.0-amd64-netinst.iso) |
Thank you for your info. I also found comment out "#-lregex" works fine on Ubuntu 21.10. |
One more update. So far, the easiest install has been using Ubuntu 21.10. Confirmed build there with "#-lregex" commented out. I'm going to try to build it on windows next. |
Thank you for your trials. https://github.com/dinosauria123/Koko/releases/tag/20220129-win32-test |
Cool. My goal is to try to contribute, so I'm working on setting up a full development environment. I'll start a new issues for the problems with the windows build. |
Using Ubuntu-focal. Following these general build instructions: #1 (comment)
Firstly, what I have working. I ran into some issues that I was able to solve. I'll post them up here incase it's useful for anyone.:
Resolved Build Error 1) "gfortran error: unrecognized command line option '-fallow-argument-mismatch'; did you mean '-wno-argument-mismatch'?"
This one was related to needing a newer version of gFortran.
sudo apt-get install gfortran-10
Koko/Src/Makefile:
Resolved Build Error 2) "gcc-10: fatal error: cannot execute 'cc1plus': execvp: no such file or directory"
Fixed from here: https://ahelpme.com/linux/ubuntu/install-and-make-gnu-gcc-10-default-in-ubuntu-20-04-focal/
Now what's not working:
Unresolved Build Error 3) "/usr/bin/ld: cannot find -lregex"
From the Koko/Src/Makefile:
LIBS = -static -Wl,--start-group $(addprefix -l,$(SUBDIRS)) -llinenoise -lkmod -Wl,--end-group -lm -lstdc++ -lregex
Not sure how to fix this one. Any ideas? I got the source to build by removing that "-lregex" argument in the Makefile, but I'm pretty sure it's causing some character funny business on the command line.
The text was updated successfully, but these errors were encountered: