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

Cannot Build #514

Closed
khansamad47 opened this issue Aug 6, 2017 · 16 comments
Closed

Cannot Build #514

khansamad47 opened this issue Aug 6, 2017 · 16 comments

Comments

@khansamad47
Copy link

@khansamad47 khansamad47 commented Aug 6, 2017

watchman-ContentHash.o: In function watchman::ContentHashCache::computeHashImmediate(watchman::ContentHashCacheKey const&) const': /home/akhan/watchman/ContentHash.cpp:65: undefined reference to SHA1_Init'
/home/akhan/watchman/ContentHash.cpp:78: undefined reference to SHA1_Update' /home/akhan/watchman/ContentHash.cpp:81: undefined reference to SHA1_Final'
collect2: error: ld returned 1 exit status
Makefile:1566: recipe for target 'watchman' failed
make[1]: *** [watchman] Error 1
make[1]: Leaving directory '/home/akhan/watchman'
Makefile:1101: recipe for target 'all' failed
make: *** [all] Error 2

@wez

This comment has been minimized.

Copy link
Contributor

@wez wez commented Aug 8, 2017

You need libcrypto; this is typically installed as part of the openssl development package for your system. Different linux distributions call this different things, so it's hard to suggest what to install without knowing which distribution you are running. Redhat systems call this something like openssl-devel and debian/ubuntu systems are something like libssl-dev but it may be in a separate package.

@wez wez closed this Aug 16, 2017
@czbaker

This comment has been minimized.

Copy link

@czbaker czbaker commented Sep 7, 2017

I'm on Ubuntu 16.04 x64 and am unable to build Watchman.

I've installed libssl-dev and libcrypto++-dev as per other suggestions and I'm getting an error identical to @khansamad47 above, with references to SHA1_Init, SHA1_Update, and SHA1_Final. Not sure what I'm missing...

@WeslleyNasRocha

This comment has been minimized.

Copy link

@WeslleyNasRocha WeslleyNasRocha commented Sep 10, 2017

me too

@mortezaadi

This comment has been minimized.

Copy link

@mortezaadi mortezaadi commented Sep 27, 2017

Same problem on Ubuntu 17.04 (Zesty Zapus)

@cdatehortuab

This comment has been minimized.

Copy link

@cdatehortuab cdatehortuab commented Oct 2, 2017

Same problem (Ubuntu 17.04)
I've installed libssl-dev, too.
In the 4.7.0 version there was not this problem.

UPDATE
I installed libcrypto++-dev and it works.
I cloned the repository in /opt so I ran all commands as super user.

@Nshul

This comment has been minimized.

Copy link

@Nshul Nshul commented Oct 4, 2017

I am also using Ubuntu 16.04 x64 and when try to run $ make on my terminal
I get the errors as

watchman-ContentHash.o: In function `watchman::ContentHashCache::computeHashImmediate(watchman::ContentHashCacheKey const&) const':
/home/anshulmittal/watchman/ContentHash.cpp:65: undefined reference to `SHA1_Init'
/home/anshulmittal/watchman/ContentHash.cpp:78: undefined reference to `SHA1_Update'
/home/anshulmittal/watchman/ContentHash.cpp:81: undefined reference to `SHA1_Final'
collect2: error: ld returned 1 exit status
Makefile:1566: recipe for target 'watchman' failed
make[1]: *** [watchman] Error 1
make[1]: Leaving directory '/home/anshulmittal/watchman'
Makefile:1101: recipe for target 'all' failed
make: *** [all] Error 2

Please help

@excalliburbd

This comment has been minimized.

Copy link

@excalliburbd excalliburbd commented Oct 6, 2017

After installing libssl-dev I did ./autogen.sh and ./configure again. make is now working without error.

@Nshul

This comment has been minimized.

Copy link

@Nshul Nshul commented Oct 7, 2017

@excalliburbd Thank You

@Thasneen

This comment has been minimized.

Copy link

@Thasneen Thasneen commented Nov 24, 2017

@excalliburbd Thank you

@samrose

This comment has been minimized.

Copy link

@samrose samrose commented Feb 6, 2018

On Debian Jessie I needed to do all of the following

sudo apt-get install inotify-tools build-essential libssl-dev libcrypto++-dev pkg-config libtool python-dev automake autoconf
cd /tmp
git clone https://github.com/facebook/watchman.git
cd watchman
git checkout v4.9.0  # or whatever is now the latest stable release
./autogen.sh
./configure --enable-statedir=/tmp
sudo make
sudo make install
sudo mv watchman /usr/local/bin/watchman
@ahtaufiiq

This comment has been minimized.

Copy link

@ahtaufiiq ahtaufiiq commented Mar 15, 2018

On Fedora

Using it
sudo yum install libstdc++*

@reedv

This comment has been minimized.

Copy link

@reedv reedv commented Jun 4, 2018

Following @samrose 's answer worked for me on Ubuntu 16.04 (xenial) (though I did not do the sudo mv watchman /usr/local/bin/watchman step) (see #514 (comment)).

@gitowiec

This comment has been minimized.

Copy link

@gitowiec gitowiec commented Aug 12, 2018

To install Watchman on Ubuntu 18.04 (Budgie) I did:

$ git clone https://github.com/facebook/watchman.git
$ cd watchman
$ git checkout v4.9.0
$ sudo apt-get install -y autoconf automake build-essential python-dev libtool m4 pkg-config libssl-dev libcrypto++-dev
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
$ echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches && \
echo 999999 | sudo tee -a  /proc/sys/fs/inotify/max_queued_events && \
echo 999999 | sudo tee  -a /proc/sys/fs/inotify/max_user_instances && \
watchman shutdown-server
@Jonyleo

This comment has been minimized.

Copy link

@Jonyleo Jonyleo commented Mar 25, 2019

I am also using Ubuntu 16.04 x64 and when try to run $ make on my terminal
I get the errors as

watchman-ContentHash.o: In function `watchman::ContentHashCache::computeHashImmediate(watchman::ContentHashCacheKey const&) const':
/home/anshulmittal/watchman/ContentHash.cpp:65: undefined reference to `SHA1_Init'
/home/anshulmittal/watchman/ContentHash.cpp:78: undefined reference to `SHA1_Update'
/home/anshulmittal/watchman/ContentHash.cpp:81: undefined reference to `SHA1_Final'
collect2: error: ld returned 1 exit status
Makefile:1566: recipe for target 'watchman' failed
make[1]: *** [watchman] Error 1
make[1]: Leaving directory '/home/anshulmittal/watchman'
Makefile:1101: recipe for target 'all' failed
make: *** [all] Error 2

Please help

OMG are you the dude who made the pewdiepie vs t series counter?

@Nshul

This comment has been minimized.

Copy link

@Nshul Nshul commented Mar 28, 2019

@Jonyleo I am sorry, Didn't get you. Is there something I missed??

@varun-experion

This comment has been minimized.

Copy link

@varun-experion varun-experion commented May 6, 2019

After installing libssl-dev I did ./autogen.sh and ./configure again. make is now working without error.

Super.. Thanks a lot.

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

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.