thrift/TDispatch processor.h No such file or directory error - makefile

I am trying to run a Makefile, and coming up with this error:
thrift/TDispatch processor.h No such file or directory
compilation terminated
Thrift is installed in /usr/local/bin/thrift, I have make sure by writing thrift in terminal.

Related

During Openssl build: How to fix "fatal error: apps/app_rand.d: no such file or directory, compilation terminated"

I am attempting to update openssl to 1.1.1 on centos 7 in order to start building OpenLDAP.
After pulling the openssl installation package and unzipping it in /usr/local/src/ I ran ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib. This command successfully configured openssl.
I then ran the make command to build openssl and got the following error:
cc1: fatal error: apps/app_rand.d: no such file or directory
compilation terminated
make(1): *** (apps/app.rand.o) Error 1
make(1): Leaving directory '/usr/local/src/openssl-1.1.1d'
make: *** (all) Error 2
The apps directory was created and does exist, but the app_rand.d file is not present inside of the apps directory.
I have downloaded all dependencies (i believe)
I am decent in linux, I have my rhcsa, but am not familiar with manually building software libraries like openssl. I have tried to do some research online but have not come up with any solutions. Any advice would be very much appreciated!

Problem installing omni compiler - fatal error: mpi.h: No such file or directory

I am trying to install omni compiler in order to compile XcalableMP programs on OSX. I can ./configure successfully as per the instructions but am receiving this error when I make:
../include/xmp_internal.h:19:10: fatal error: mpi.h: No such file or directory
My Open MPI is installed via homebrew and mpi.h is located through my Cellar folder. How do I go about including this header file?
can you try the following command to be sure the location of the installed openmpi is correct:
mpicc -showme
Then, are you sure the mpi path is in your path, try to set these environment variables and then try:
Note that I assume the openmpi is installed in "/home/openmpi" path for example:
export PATH=/home/opempi/bin:/home/opempi/include:$PATH
and for the runtime:
export LD_LIBRARY_PATH=/home/openmpi/lib:$LD_LIBRARY_PATH
Then try to configure and make again the omnicomppiler,

Cannot install Watir on Jruby 9.1.12.0 - Windows 7

I am trying to install gems from a local gem repository into Jruby 9.1.12.0 and I am getting stuck on Watir which is pretty much the first one I tried.
I am running on Windows 7 with JDK 1.8.0_131
I get the following:
Error installing watir:
ERROR: Failed to build gem native extension
it looks as though the rest of the error message is complaining about ffi-1.9.18 I am afraid I can't post the exact error message as it is inside a VM that is not internet enabled.
update: full error message:
C:\Ruby\gem>jruby -S gem install watir
Building native extensions. This could take a while...
C:/jruby-9.1.12.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:58: warning: Tempfile#unlink or delete called on open file
; ignoring
ERROR: Error installing watir:
ERROR: Failed to build gem native extension.
current directory: C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/ffi-1.9.18/ext/ffi_c
C:/jruby-9.1.12.0/bin/jruby.exe -r ./siteconf20170718-2540-6mqxiv.rb extconf.rb
current directory: C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/ffi-1.9.18/ext/ffi_c
make "DESTDIR=" clean
'make' is not recognized as an internal or external command,
operable program or batch file.
current directory: C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/ffi-1.9.18/ext/ffi_c
make "DESTDIR="
'make' is not recognized as an internal or external command,
operable program or batch file.
make failed, exit code 1
Gem files will remain installed in C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/ffi-1.9.18 for inspection.
Results logged to C:/jruby-9.1.12.0/lib/ruby/gems/shared/extensions/universal- java-1.8/2.3.0/ffi-1.9.18/gem_make.out
I got this working now. It was obvious from the error message that 'Make' was not being located correctly. I added the correct directory to the path and Watir was installed correctly.

gendef returning invalid syntax error

I am trying to install Theano for machine learning on my Windows 7 computer.
One of the last steps in installing the dependencies is to 'create a link library for GCC' by 'Opening up the Python shell and cd to C:\SciSoft. Then execute:
gendef WinPython-64bit-2.7.9.4\python-2.7.9.amd64\python27.dll
dlltool --dllname python27.dll --def python27.def --output-lib WinPython-
64bit-2.7.9.4\python-2.7.9.amd64\libs\libpython27.a
I've tried doing this but I get a invalid syntax error highlighted on 'WinPython'. I tried changing directory to go deeper and running gendef again and it also returned the same error. This is a copy and paste job from http://deeplearning.net/software/theano/install_windows.html#install-windows
I also followed the tutorial at the link to install Theano.
The line "Finally we need to create a link library for GCC. Open up the Python shell and cd to c:\SciSoft" is probably an error; "the Python shell" should be modified to "cmd.exe".
The two-line scripts are not python scripts, and can be successfully run on cmd.exe after changing directory to c:\SciSoft.

install x11 in mac 10.10.1

I am trying to run a program in this system.
There is a makefile in the package. And I also need X11 to run it, so I have installed xQuarts,and add all the (potentially) useful path to the PATH.
when I type "$PATH" in the terminal,
it shows:
-bash:
/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin: No such file or directory
I used "make all" in my source code package, it result in the following error:
./Xlibext.c:2:10: fatal error: 'X11/Xlib.h' file not found
#include "X11/Xlib.h"
^
1 error generated.
I have reviewed some other posts, but I couldn't find a solution yet. Can anyone help?

Resources