Installing hiredis on ubuntu 16.04 - hiredis

I installed hiredis on Ubuntu.
My redis.conf file has following lines
#unixsocket /var/run/redis/redis.sock
#unixsocketperm 700
It was not working. So I changed that to below lines:
unixsocket /tmp/redis.sock
unixsocketperm 755
While make test for hiredis, I am getting the following error
Testing against Unix socket connection (/tmp/redis.sock):
Connection error: No such file or directory
Makefile:195: recipe for target 'test' failed
make: *** [test] Error 1

Related

Cygwin -- installing `tcl-devel` packages does not provide header files

I have some makefile that is used to compile a program. During compilation I get an error:
In file included from kernel/driver.cc:20:
./kernel/yosys.h:81:12: fatal error: tcl.h: No such file or directory
81 | # include <tcl.h>
| ^~~~~~~
compilation terminated.
make: *** [Makefile:696: kernel/driver.o] Error 1
Then I rerun Cygwin setup application and install new package tcl-devel. I restart the Cygwin terminal and try again. The same error pops up. I don't understand! Why aren't headers found?
My tcl and tcl-devel are both of version 8.6.11-1.

PULP SDK (platform-rtl)

I'm following the tutorial on PULP SDK build process "https://github.com/pulp-platform/pulp-sdk/blob/b38dabd571287b6183f17a2c5538382b9d3fe668/README.md". I'm blocked at the stage of SDK build when I tape the command "$ make all" and I can't understand what's mean these errors.
ImportError: No module named 'sphinx'
Makefile:56: recipe for target 'html' failed
make[2]: * [html] Error 1
Makefile:14: recipe for target 'all' failed
make[1]: * [all] Error 2
Reached EOF with exit status 2
FATAL ERROR: the command 'build' has failed
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 255
I had a similar problem, this error is caused by not (correctly) installing the pulp-riscv-gnu-toolchain.
So you should first install this toolchain which can be found here https://github.com/pulp-platform/pulp-riscv-gnu-toolchain.
After that you should follow the steps for "Installation (Pulp)" and replace the command for make to sudo make.
Now you can return to your tutorial on PULP SDK build process.
In case you are still encountering the same error than you should execute this command which I found here cannot open libmpfr.so.4 after update on ubuntu 18.04
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4
" Bear in mind that this is just workaround which might trigger other issues for your case. However, this might save you the day in cases when the problematic program is just a mean to achieve something else."

Kernel "make module_install" always gives error

Hey guys i am trying to command a custom system call.
I tried every step given on this website.
But whenever i enter the " make modules_install install " command i always get this error :
INSTALL arch/x86/crypto/aes-x86_64.ko
cp: cannot stat 'arch/x86/crypto/aes-x86_64.ko': No such file or directory
Can't read module
scripts/Makefile.modinst:30: recipe for target 'arch/x86/crypto/aes-x86_64.ko' failed
make[1]: *** [arch/x86/crypto/aes-x86_64.ko] Error 2
Makefile:1077: recipe for target '_modinst_' failed
make: *** [_modinst_] Error 2
I searched everywhere but i am unable to find any answer.
Looking forward for a solution.

installing PAR::Packer Module on Perl 5.16

I was trying to install a module named "PAR::Packer" on active Perl version 5.16 running on 64 bit Ubuntu machine . But the installation was exiting with some errors :
this is the error :
-----------------
main.o: In function `main':
main.c:(.text.startup+0x35): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
make[1]: *** [par] Error 1
make[1]: Leaving directory `/root/.cpan/build/PAR-Packer-1.017-dIGsgr/myldr'
make: *** [subdirs] Error 2
RSCHUPP/PAR-Packer-1.017.tar.gz
/usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
RSCHUPP/PAR-Packer-1.017.tar.gz : make NO
----------------
I also tried with PPM to install this module . PPM installation was successful , but I was not able to run the "pp" command .
Any help would be appreciated .
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629670
seems to be a bug in debian 64 bit. Changed where they locate the libs.

Building test project in Cocos2dx ( libgnustl_static.a: Permission denied )

I am starting with cocos2dx.
Having setup the environment on Windows 8, I created a new project using create-android-project.bat.
Now when I build the project by using ./build_native.sh in cygwin, I get the following errors:
c:/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.exe: cannot find ./obj/local/armeabi/libgnustl_static.a: Permission denied
collect2: ld returned 1 exit status
/cygdrive/c/android-ndk-r8b/build/core/build-binary.mk:378: recipe for target 'obj/local/armeabi/libgame.so' failed
make: *** [obj/local/armeabi/libgame.so] Error 1
make: Leaving directory '/cygdrive/c/cocos2d-2.0-x-2.0.4/test/proj.android'
I figured that as it was a permission denied error, so I tried chmod 777 -R on both the cocos2dx directory and the NDK directory, but to no avail.
I can't figure out what to do now.
With NDK r8b, you don't need cygwin. Take cygwin/bin off the PATH and run ndk-build.cmd.
BTW, I strongly recommend to upgrade to NDK r9b. It's free.

Resources