I have encontered an error while installing watchman on ubuntu 19, can someone give me a solution for this? - react-native

I have followed the watchman official guide to clone watchman and followed the given commands
$ cd watchman
$ ./autogen.sh
$ ./configure
$ make
after $ make command its caused a error like following
CXX scm/watchman-Mercurial.o
scm/Mercurial.cpp: In constructor ‘watchman::Mercurial::infoCache::infoCache(std::string)’:
scm/Mercurial.cpp:16:40: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct watchman::FileInformation’; use assignment or value-initialization instead [-Werror=class-memaccess]
16 | memset(&dirstate, 0, sizeof(dirstate));
| ^
In file included from scm/Mercurial.h:10,
from scm/Mercurial.cpp:3:
./FileInformation.h:18:8: note: ‘struct watchman::FileInformation’ declared here
18 | struct FileInformation {
| ^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:4446: scm/watchman-Mercurial.o] Error 1
anybody know what is going on here

Adding these flags to configure (before make) did it for me:
./configure --without-python --without-pcre --enable-lenient

Related

Error installing prawn-gmagick within Heroku stack 20 due to invalid wand/magick_wand.h path

Here is the error I'm getting when trying to deploy to Heroku using the most recent stack (20)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/build_20bfe735/vendor/bundle/ruby/2.6.0/gems/prawn-gmagick-0.0.9/ext/image
/tmp/build_20bfe735/vendor/ruby-2.6.6/bin/ruby -I
/tmp/build_20bfe735/vendor/ruby-2.6.6/lib/ruby/2.6.0 -r
./siteconf20210328-11397-1gaqmyj.rb extconf.rb
creating Makefile
current directory:
/tmp/build_20bfe735/vendor/bundle/ruby/2.6.0/gems/prawn-gmagick-0.0.9/ext/image
make "DESTDIR=" clean
current directory:
/tmp/build_20bfe735/vendor/bundle/ruby/2.6.0/gems/prawn-gmagick-0.0.9/ext/image
make "DESTDIR="
compiling image.c
image.c:3:10: fatal error: wand/magick_wand.h: No such file or directory
3 | #include <wand/magick_wand.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:245: image.o] Error 1
make failed, exit code 2
Same error after I tried this buildpack with graphicsmagick
https://elements.heroku.com/buildpacks/bogini/heroku-buildpack-graphicsmagick
So, after playing a bit I made it work by adding 3 additional dependencies to the Aptfile in the example above
libgraphicsmagick++3
libgraphicsmagick++1-dev
libgraphicsmagick-q16-3
So the final Aptfile looks like this
debhelper
g++
gsfonts
libbz2-dev
libexif-dev
libfreetype6-dev
libice-dev
libjbig-dev
libjpeg-dev
liblcms2-dev
libltdl-dev
libpng-dev
libsm-dev
libtiff-dev
libwebp-dev
libwmf-dev
libx11-dev
libxext-dev
libxml2-dev
perl
sharutils
transfig
x11proto-core-dev
zlib1g-dev
libgraphicsmagick++3
libgraphicsmagick++1-dev
libgraphicsmagick-q16-3
And my buildpacks setup:
1. https://github.com/heroku/heroku-buildpack-apt
2. https://github.com/bogini/heroku-buildpack-graphicsmagick
3. heroku/ruby
Do you guys see any problem with any of those dependencies and setup?

Making Cmakelist (ros) failure

After installing ros(melodic version), I followed the below steps one by one.
$ mkdir -p catkin_ws/src
$ cd catkin_ws/src
$ catkin_init_workspace
$ cd ..
$ catkin_make
Then error came up like this
CMake Error at CMakeLists.txt:1:
Parse error. Expected a command name, got unquoted argument with text
"/opt/ros/melodic/share/catkin/cmake/toplevel.cmake".
-- Configuring incomplete, errors occurred!
See also "/home/hangilkim/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/hangilkim/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
I found that CMakeLists.txt file in 'home/catkin_ws/src' folder exists clearly, but contain only this message.
/opt/ros/melodic/share/catkin/cmake/toplevel.cmake
How can I solve this problem??
Looks like you are trying to compile an already compiled project. So delete the CMakeLists.txt file in 'home/catkin_ws/src' or for safety measures move it to another folder then run catkin_make command on your terminal.

Installing Apache httpd 2.4.x on AIX 7.1 using xlc

I am installing apache httpd 2.4.x on AIX 7.1 machine using xlc compiler. Make is successful. But make install is failing with the following error
Making install in modules Making install in aaa rm -f /home/u980868/apache/kiran/httpd-kiran/modules/mod_authn_file.so /home/u980868/apache/kiran/httpd-2.4.25/srclib/apr/libtool --silent --mode=install install mod_authn_file.la /home/u980868/apache/kiran/httpd-kiran/modules/ find: bad status-- /home/u980868/apache/kiran/httpd-kiran/modules/mod_authn_file.so install: File mod_authn_file.so was not found. make: 1254-004 The error code from the last command is 2. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop.
can someone please help.

GNURadio libusb error using PyBombs

I am attempting to install GNURadio using PyBombs on Ubuntu 14.04.
I am following the quickstart steps found at https://github.com/gnuradio/pybombs/
During the build I get the following errors:
Linking CXX executable tags_demo
/usr/local/lib/libuhd.so: undefined reference to `libusb_error_name'
/usr/local/lib/libuhd.so: undefined reference to `libusb_strerror'
collect2: error: ld returned 1 exit status
make[2]: *** [gr-uhd/examples/c++/tags_demo] Error 1
make[1]: *** [gr-uhd/examples/c++/CMakeFiles/tags_demo.dir/all] Error 2
make: *** [all] Error 2
PyBombs.Packager.source - ERROR - Build failed. See output above for error messages.
PyBombs.Packager.source - ERROR - Problem occurred while building package gnuradio:
Build failed.
PyBombs.install - ERROR - Error installing package gnuradio. Aborting.
After a bit of research I have confirmed I have installation of the libusb library:
$ ldconfig -p | grep usb
libusbmuxd.so.2 (libc6) => /usr/lib/libusbmuxd.so.2
libusb-1.0.so.0 (libc6) => /lib/i386-linux-gnu/libusb-1.0.so.0
libusb-1.0.so.0 (libc6) => /usr/local/lib/libusb-1.0.so.0
libusb-1.0.so.0 (libc6) => /usr/lib/libusb-1.0.so.0
libusb-1.0.so (libc6) => /usr/lib/i386-linux-gnu/libusb-1.0.so
libusb-0.1.so.4 (libc6) => /lib/i386-linux-gnu/libusb-0.1.so.4
libusb-0.1.so.4 (libc6) => /usr/lib/i386-linux-gnu/libusb-0.1.so.4
libgusb.so.2 (libc6) => /usr/lib/i386-linux-gnu/libgusb.so.2
and found the required symbols in two locations:
$ nm -D /lib/i386-linux-gnu/libusb-1.0.so.0 | grep error
00004e80 T libusb_error_name
000091b0 T libusb_strerror
U strerror
$ nm -D /usr/lib/i386-linux-gnu/libusb-1.0.so | grep error
00004e80 T libusb_error_name
000091b0 T libusb_strerror
U strerror
But I am not sure why the build is not locating them.
Note: The libusb libraries were installed from the Ubuntu repository.
Is someone able to point me in the right direction so I can understand what the issue is here?
Thanks.
Okay, so I tried to remove libusb-1.0-0 with the intention of installing libusb from source. However removing libusb-1.0-0 also removed gnome-session and gvfs-backends which broke my GUI. doh!
Once this was fixed, I just tried to installed libusb from source from the libusb.info website and did the usual routine.
$ ./configure
$ make
$ sudo make install
Then I retried the PyBombs installation process and it worked.

installing WordNet on Mac

I'm trying to install Wordnet 3.0 on my Mac which is OSX 10.8.
I've configured it, but when I try make,
I get a bunch of errors...
.....
/usr/include/tkDecls.h:1692: error: expected specifier-qualifier-list before ‘XColor’
make[2]: *** [wishwn-tkAppInit.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
and then if I proceed with make install
Making install in doc
Making install in html
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/WordNet-3.0/doc/html" || /Users/ravenyj/Desktop/WordNet-3.0/install-sh -d "/usr/local/WordNet-3.0/doc/html"
mkdir: /usr/local/WordNet-3.0: Permission denied
make[3]: *** [install-htmlDATA] Error 1
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
I have not made any modification to Makefile, and don't know if I should.
Could anyone please help me out on this?
Using brew is orders of magnitude simpler. Just:
brew install wordnet
The following worked for me to get it to compile:
./configure CFLAGS="-I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -fpermissive" CC=/usr/bin/gcc
then
make
sudo make install
after that it's showing up fine for me in
/usr/local/WordNet-3.0/
I then added WordNet to my $PATH by editing my .bash_profile file, adding the line:
export PATH=/usr/local/WordNet-3.0/bin:$PATH
opening a new Terminal window, I could then type:
$ wn
and see that it's now working fine
Do the following to install WordNet in fastest manner:
Press Command+Space and type Terminal and press enter/return key.
Run in Terminal app:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
...and press enter/return key. Wait for the command to finish.
Run:
brew install wordnet
After installation use 'wn' command in terminal to access the application.
I had the same problem too until I saw this webpage: http://ticanchang.blogspot.com/2010/04/install-wordnet-in-mac.html
In the folder of your downloaded WordNet package, type:
./configure
make
sudo make install
You need to include "sudo" because normally a user do not have the permission to update the /usr/local folder.