-
Notifications
You must be signed in to change notification settings - Fork 37
README updates #18
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
Comments
After build, there is the need to copy the .so file to the location mentioned on the error above.
|
Just to confirm:
Testing: there is an error: levenshtein_ratio returns the same as levenshtein instead of 0..1
|
In fact, all functions return the same as levenshtein, here tested lev_k_ratio:
|
The only way to make the ratio work is by using levenshtein() /* the only function that works from mysql */ and calculating the ratio:
|
Requires: sudo apt install libmysqlclient-dev
Before build.
After installing got:
$ gcc -o levenshtein.so -shared levenshtein.c
mysql_config --include
/usr/bin/ld: /tmp/ccBcelTa.o: relocation R_X86_64_PC32 against symbol `levenshtein' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Tried: $ gcc -o levenshtein.so -shared -fPIC levenshtein.c
mysql_config --include
Worked OK, I can see the new .so file
The text was updated successfully, but these errors were encountered: