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

/usr/bin/ld: cannot find -ltomcrypt (compiling on ubuntu 9.1) #68

Open
BRMatt opened this issue Mar 7, 2010 · 2 comments
Open

/usr/bin/ld: cannot find -ltomcrypt (compiling on ubuntu 9.1) #68

BRMatt opened this issue Mar 7, 2010 · 2 comments

Comments

@BRMatt
Copy link

BRMatt commented Mar 7, 2010

I'm trying (and failing) to compile the master branch on ubuntu 9.1.

When I try to make DEBUG=1 I get this error:

[CC] WebKitHtmlWnd.cpp
[CC] wxListCtrlEx.cpp
[LD] e.debug
/usr/bin/ld: cannot find -ltomcrypt
collect2: ld returned 1 exit status
make: *** [e.debug] Error 1

A quick googling doesn't really tell tell me anything other than I need to find an ltomcrypt lib, though I'm not exactly sure where to look.
There seems to be a similarly named project on freshmeat but the website's domain expired recently.

@ajpalkovic
Copy link
Contributor

-l is a compiler option to search for a library file. tomcrypt is the name of the library file. In linux, the filename will typically be libtomcrypt.so . You can typically find it in /lib, /usr/lib, or /usr/local/lib (or any subdirectory inside of them).

If you want to find it quickly, run:
locate libtomcrypt

and it will probably find it (If it complains that the database is old, first run:
sudo updatedb

First, make sure that libtomcrypt was downloaded correctly (I know their site has been down for a bit, so the script might not have downloaded the archive correctly). Run:
less external/arch/cr*
less external/arch/ltm*
Make sure both display junk, that theyre binary files. If display as html, you need to rerun the get and build externals scripts.

Also, you may need to install libtomcrypt with something like:
sudo apt-get install libtomcrypt-devel libtommath-devel

@BRMatt
Copy link
Author

BRMatt commented Mar 10, 2010

The files were full of html junk so did a bit of googling and found (a helpful article)[http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit] with links to a download mirror for the files

http://safari.iki.fi/tom/crypt-1.11.tar.bz2
http://safari.iki.fi/tom/ltm-0.39.tar.bz2

And fyi there aren't any apt packages named libtomcrypt-devel or libtommath-devel

libtomcrypt-dev was the closest I got but ubuntu refused to install it

All of the above solved my problem but I've now got a new problem which I'll create a separate issue for.

Thanks for your help ajpalkovic!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants