Cygwin Dlopen Exec Format Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow cygwin run linux binary the company Business Learn more about hiring developers or posting ads with us Stack Overflow
Run Elf File Cygwin
Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 cygwin elf million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up cygwin binary exec format error up vote 1 down vote favorite I have a script file that I was cannot execute binary file exec format error ubuntu given to run in windows using Cygwin. When I try to use this file I get the following error -bash: /sigdet/filename: cannot execute binary file: Exec format error. sigdet is the folder within the Cygwin directory that I have the script. Rawdata is the name of the directory with the raw data files that the script is supposed to analyze. To try and solve this, I have changed the file permissions, I
Bash Cannot Execute Binary File
have checked to make sure that it is on a 64 bit machine and the script appears to have compiled on a 64-bit machine. After these steps, I don't know what else the problem could be. Here are the commands I've entered: I first changed the directory like so: $ cd /sigdet/ Then I ran the script that is suppsed to work: $ /sigdet/filename -i rawdata Does the script file need to have an extension in windows? I've tried changing it to a .sh extension with no luck. I'm told that it just works on other windows machines just how it is. Thanks to anyone that can help with this. linux windows bash cygwin share|improve this question asked Jul 2 '15 at 18:27 StructuralEquationModel 813 Show your script. –Cyrus Jul 2 '15 at 18:48 The file is protected by copywrite so I can't upload that information, unfortunately. –StructuralEquationModel Jul 3 '15 at 18:26 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted Your file is not an executable. It most probably contains ELF executable which is designed for Linux operating system, or it's corrupt. If your file was a shell script, or in fact anything that contained plain text, you'd get different errors (such as, "expe
Snapshots Source in Git Cygwin Packages Related Sites Cygwin Get that Linux feeling - on Windows Cygwin FAQCygwin FAQCygwin FAQ1. About Cygwin1.1. What is it?1.2. What versions of Windows are supported?1.3. Where can I get it?1.4. Is install cygwin it free software?1.5. What version of Cygwin is this, anyway?1.6. Who's behind the project?2. Setting up Cygwin2.1. What is the recommended installation procedure?2.2. What about an automated Cygwin installation?2.3. Does Setup accept command-line arguments?2.4. Can I install Cygwin without administrator rights?2.5. Why not install in C:\?2.6. Can I use Cygwin Setup to get old versions of packages (like gcc-2.95)?2.7. How does Cygwin secure the installation and update http://stackoverflow.com/questions/31192010/cygwin-binary-exec-format-error process?2.8. What else can I do to ensure that my installation and updates are secure?2.9. Is Cygwin Setup, or one of the packages, infected with a virus?2.10. My computer hangs when I run Cygwin Setup!2.11. What packages should I download? Where are 'make', 'gcc', 'vi', etc? 2.12. How do I just get everything?2.13. How much disk space does Cygwin require?2.14. How do I know which version I http://www.cygwin.com/faq.html upgraded from?2.15. What if setup fails?2.16. My Windows logon name has a space in it, will this cause problems?2.17. My HOME environment variable is not what I want.2.18. How do I uninstall individual packages?2.19. How do I uninstall a Cygwin service?2.20. How do I uninstall all of Cygwin?2.21. How do I install snapshots?2.22. Can Cygwin Setup maintain a ``mirror''?2.23. How can I make my own portable Cygwin on CD?2.24. How do I save, restore, delete, or modify the Cygwin information stored in the registry?3. Further Resources3.1. Where's the documentation?3.2. What Cygwin mailing lists can I join?3.3. What if I have a problem? (Or: Why won't you/the mailing list answer my questions?)4. Using Cygwin4.1. Why can't my application locate cygncurses-8.dll? or cygintl-3.dll? or cygreadline6.dll? or ...?4.2. Starting a new terminal window is slow. What's going on?4.3. Why is Cygwin suddenly so slow?4.4. Why can't my services access network shares?4.5. How should I set my PATH?4.6. Bash (or another shell) says "command not found", but it's right there!4.7. How do I convert between Windows and UNIX paths?4.8. Why doesn't bash read my .bashrc file on startup?4.9. How can I get bash filename completion to be case insensitive?4.10. Can I use paths/filenames co
4 messages Boszormenyi Zoltan Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ ERROR: could not load library "...": Exec format error Hi, I have http://postgresql.nabble.com/ERROR-could-not-load-library-quot-quot-Exec-format-error-td1924694.html the $SUBJECT problem loading my own module in PostgreSQL. The server is HP-UX/ia64, PostgeSQL 8.4.2 was compiled with HP CC. pl/PgSQL can be loaded fine. ...:/usr/local/pgsql/pgsql-cc-8.4/lib# ldd odbclink.so libodbc.so.1 => http://osdir.com/ml/dev-httpd/2000-12/msg00820.html /usr/local/pgsql/runtime/lib/libodbc.so.1 libpthread.so.1 => /usr/lib/hpux64/libpthread.so.1 libc.so.1 => /usr/lib/hpux64/libc.so.1 libdl.so.1 => /usr/lib/hpux64/libdl.so.1 "/usr/local/pgsql/runtime" is a link to "/usr/local/pgsql/pgsql-cc-8.4" ...:/usr/local/pgsql/pgsql-cc-8.4/lib# file exec format plpgsql.so odbclink.so plpgsql.so: ELF-64 shared object file - IA64 odbclink.so: ELF-64 shared object file - IA64 The module compilation was done using "USE_PGXS=1 gmake". How can I solve this issue? Thanks in advance, Zoltán Böszörményi -- Bible has answers for everything. Proof: "But let your communication be, Yea, yea; Nay, nay: for whatsoever is more than these cometh of evil." (Matthew 5:37) - basics of digital exec format error technology. "May your kingdom come" - superficial description of plate tectonics ---------------------------------- Zoltán Böszörményi Cybertec Schönig & Schönig GmbH http://www.postgresql.at/-- Sent via pgsql-general mailing list ([hidden email]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general Korry Douglas Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: ERROR: could not load library "...": Exec format error > I have the $SUBJECT problem loading my own > module in PostgreSQL. The server is HP-UX/ia64, > PostgeSQL 8.4.2 was compiled with HP CC. > pl/PgSQL can be loaded fine. > > ...:/usr/local/pgsql/pgsql-cc-8.4/lib# ldd odbclink.so > libodbc.so.1 => /usr/local/pgsql/runtime/lib/libodbc.so.1 > libpthread.so.1 => /usr/lib/hpux64/libpthread.so.1 > libc.so.1 => /usr/lib/hpux64/libc.so.1 > libdl.so.1 => /usr/lib/hpux64/libdl.so.1 > > "/usr/local/pgsql/runtime" is a link to "/usr/local/pgsql/pgsql- > cc-8.4" > > ...:/usr/local/pgsql/pgsql-cc-8.4/lib# file plpgsql.so odbclink.so > plpgsql.so: ELF-64 shared object file - IA64 > odbclink.so: ELF-64 shared object file - IA64 > > The module compilation was done using "USE_PGXS=1 gmake". > > How can I solve this issue? IIRC, HP/UX doesn't like to dynamic-load shared libraries that use thread-local storage. Your shared library (odbclink.so) is linked
user. I downloaded the binary distribution > > of Apache 1.3.14 for AIX 4.3.1 (RS/6000) and installed it using > > 'install-bindist' script. But when I try to run 'httpd' or 'apachectl > > start' the following error message appears: > > > > "Could not load program httpd > > Symbol dlsym in httpd is undefined > > Symbol dlerror in httpd is undefined > > Symbol dlopen in httpd is undefined > > Symbol dlclose in httpd is undefined > > Error was: exec format error" > > I have heard the same problem from other folks on comp.unix.aix, there > is no simple workaround besides compiling from source. I have no idea > how this binary was compiled. > The 1.3.14 binary was compiled against AIX 4.3.2, which is probably the problem. I'll try to do an AIX 4.2.1 and a 4.3.2 binary for the next release of Apache. Bill Thread at a glance: Previous Message by Date: cygwin32 platform patch for Apache 1.3 >Cc: apbugs@xxxxxxxxxx >Subject: Re: other/2936: Adding new cygwin32 platform support to core Apache distribution >Date: Sun, 06 Jun 1999 03:56:10 +0200 >If you have any further questions towards the patch please contact me. Hmm. Just found your apache 1.3 patch which doesn't show up in the 1.3.14 src tree. I made my own patch today, which is much shorter and works also. I needed it to support my cygwin perl with mod_perl. But yours seems to be much better; I tested mine with only some basic stuff. Your install.sh trick is better than my makefile tweaking. Why was your patch not applied? -- Reini Urban http://xarch.tu-graz.ac.at/autocad/news/faq/autolisp.html apache_1.3.14-cygwin.patch.gz Description: GNU Zip compressed data Next Message by Date: Re: cvs commit: httpd-2.0/build build.mk config-stubs On Sat, Dec 30, 2000 at 04:42:41PM -0800, rbb@xxxxxxxxxxxx wrote: >... > That doesn't work. I have just done the following on my machine: > > find . -name "config*.m4" | \ > sed 's#\(.*\)\/\(config.*\.m4\)