Skip to content
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

/liblexbor_static.a: No such file or directory #1

Closed
nightmare-wolf opened this issue Jul 26, 2023 · 5 comments
Closed

/liblexbor_static.a: No such file or directory #1

nightmare-wolf opened this issue Jul 26, 2023 · 5 comments
Labels
bug Something isn't working RHEL7

Comments

@nightmare-wolf
Copy link

nightmare-wolf commented Jul 26, 2023

crystal build -p src/spraycannon.cr
cc: error: /root/Downloads/SprayCannon/lib/lexbor/src/lexbor/../ext/lexbor-c/build/liblexbor_static.a: No such file or directory
Error: execution of command failed with exit status 1: cc "${@}" -o /root/Downloads/SprayCannon/spraycannon -rdynamic -L/usr/lib64/crystal /root/Downloads/SprayCannon/lib/lexbor/src/lexbor/../ext/lexbor-c/build/liblexbor_static.a -lxml2 -lz command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto' command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto' -lsqlite3 -lpcre2-8 -lm -lgc -lpthread -levent -lrt -lpthread -ldl

I am attempting to build this but i get an error stating that the lexbo_static.a file is missing.

when i tried
make init (worked fine)
make (nothing occurred and went to next line, assumed it worked)
make install (same error as above with the crystal build, states that file is missing and errors out).

I have crystal installed and dependencies satisfied.
Please help.

@CausticKirbyZ
Copy link
Owner

lexbor is a dependency used for html parsing and it has a post init process during the shards install process (make init). this should be where the liblexbor_static.a is built and is likely the cause of the failed build for spraycannon.

If you make clean it should clean the shard dependancies(they download to the local lib/* folder) and allow you to start from scratch.

i updated the Makefile in a recent build and a blank "make" wont do anything after make init. try make all or make spraycannon to build. the make install also depends on the 2 files being built (and thus will build them if they dont exist). ill update the readme shortly to reflect this change as well.

if this still doesnt work try the following:

  • make clean - to clean the repo
  • shards install - install dependancies
  • make spraycannon
  • make spdb
  • ./spraycannon --version - test to ensure the binary was build and runs
    once it does you should be able to do make install to install it.

I primarily use debian and arch based distros for testing builds, if you are using one that isn't in that group let me know and ill see if i can test it.

@nightmare-wolf
Copy link
Author

image
I tried again with this method and i still get the same error.
I am actually running this on RHEL 7.

@CausticKirbyZ
Copy link
Owner

I just went through this on a Kali install. The issue was that cmake wasnt installed. The lexbor post install process uses cmake.

I will try to build a centos/rhel box at some point within the next week to check dependancies for this.

@CausticKirbyZ CausticKirbyZ added bug Something isn't working RHEL7 labels Jul 28, 2023
@nightmare-wolf
Copy link
Author

Awesome thanks.
Yes i did install cmake as i read online. But the issue still persisted.

@CausticKirbyZ
Copy link
Owner

Looked into this several times and was ultimately not able to get it to compile on rhel7. Since static releases are now available, i am closing this as those should run on rhel7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working RHEL7
Projects
None yet
Development

No branches or pull requests

2 participants