what is zsh: exec format error in redhat? - redhat

zsh: exec format error... This is the error I was getting when trying to execute a large application. I am using redhat Linux. Please let me know what is the best thing to do. I have searched online. I could found the correct solution for this. Please do not hesitate for asking simple question.

I would recommend you to use uname command to check the appropriate architecture of your installed RHEL system;
uname -m
Use above command and try accordingly.

Related

MATLAB: Unable to initialize the video obtain properties

I want to use VideoReader() in MATLAB 2017b on Ubuntu 16.04. While trying to use this function I get to this error:
>> obj= VideoReader('video.mp4');
Error using VideoReader/init (line 619)
Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties
Error in VideoReader (line 172)
obj.init(fileName);
Can anyone help me with this problem?
Thanks
I faced the problem described above. It took me several hours to solve. I found many people face the same problem. So, I decided to describe my solution here, so that others can use it.
To solve this problem you need to have ffmpeg and gstreamer0.10-ffmpeg. You need to add PPA and then install the packages:
sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
sudo apt-get update
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg gstreamer0.10-tools
gstreamer0.10-plugins-good
Note: VideoReader support GStreamer 0.10.
You may still need some other plugins. I suggest you to play the video so that more needed packages will be suggested to you to install (related to codec)
The above explanation may not be completely efficient; but, I hope it will work for you, too. I ask any person who can improve my explanations so that others can use it easier and better.
You may also see the same discussion at [Unable to initialize the video obtain properties (videoreader in Matlab) page) too.

PHP5 - pgsql Module not loaded

I am trying to get work PostgresSQL with PHP, but i stuck on that apache error:
Call to undefined function pg_connect().
When i run phpinfo() i cannot see that my module is loaded, but i do not know why. The pgsql.ini files were loaded. And when i open them, i can see, that the extension is enabled extension=pgsql.so. Under /usr/lib64/php5/extensions there is the .so file. Even the permission are same like the other modules.
Any idea what am I doing wrong?
It would help if you could describe what operating system you are using. I'm assume Linux, but which distribution? One package that is often forgotten when installing postgresql and php is php5-pgsql. This is the connection between the two. For some reason I cannot explain, it is best if all three are installed together. So I suggest uninstalling postgresql and php and then installing postgresql, php5 and php5-pgsql. I hope this works for you!
I found it out. Some libraries where not found.
1.) First of all run php -version
2.) If there is an error where it described that some libraries are missing, you can solve it like me
3.) Search for the files on your system find / -name {LIBRARY NAME}
3a.) If you found them, just create a symlink to /usr/lib64
3b.) If not, find a way to get them and 3 3a

Eclipse IDE: How to add this configuration during running?

For running of one of my C++ programs, using terminal(Ubuntu) I use
Note: I'm trying to Embed Python in C++. Hence, PYTHONPATH in C++.
Refer to Python/C API for more details.
$ PYTHONPATH=. ./prog_name
Sorry, I didn't know how to ask this question on Google. I want to do the same running with Eclipse. I don't know where to specify PYTHONPATH=. during running from Eclipse. How to produce the equivalent of this? I tried putting in argument list, but obviously it didn't work. Thanks!
PS. Don't downvote just because you don't understand that python scripts can be called through C++ .. Lol
Hi to all those facing the same problem, i found the solution!
setenv() is a function defined in which sets the environment variable. Just have to run it!
setenv("PYTHONPATH",".",1);
for more info on setenv:
$ man setenv
All the best :)

yaws not building on CentOS after erlang build OK

Problem:
yaws configure is failing after autoconf with unable to find erl
Question:
Why this error is showing, because erl can be found from a bash shell from anywhere
which erl --> /usr/local/bin/erl
Thanks.
You might consider running the configure script via sh -x configure to see the detailed output showing exactly what the configure script is doing. Be warned that there'll potentially be a lot of output to sift through. Feel free to email the Yaws mailing list if you need help deciphering it.

opening Omnet from ubuntu 11.10

I am new to Omnet++. I installed Omnetpp-3.3p1 and am having trouble opening it. I tried creating a makefile within the project which has simulation codes with command opp_makemake -f -N, but I am getting command opp_makemake not found error. Am I missing something here?
The error might raise if OMNeT++ is not properly installed or the lib is not properly linked. This PDF should be what you are looking for, since it explains how to properly install version 3.3p1. - Hope to help!