Sponsored Content
Top Forums UNIX for Advanced & Expert Users Sqlite3: /lib/ld-Linux.so.2: bad ELF interpreter: Post 302846477 by steadyonabix on Saturday 24th of August 2013 07:45:36 AM
Old 08-24-2013
Sqlite3: /lib/ld-Linux.so.2: bad ELF interpreter:

Hi all

I'm hoping this is just me being a muppet, has anyone come across this problem before?

I am writing an application that uses sqlite3 and I have created a database using it -

Code:
sqlite3 muse.db
SQLite version 3.6.20
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
alarm                muse_hosts           suite
groups               runtime_environment  timer
job                  state
msgs                 state_machine_flags
sqlite> .q

If I run sqlite3 from the same directory as the database file all is well - as above.

But if I try to use a fully qualified path -

Code:
[brad@dev01o .muse_dev]$ /opt/brad/sqlite3 muse.db
-bash: /opt/brad/sqlite3: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Googling around would suggest that this is a problem with trying to run a 32 bit version of an executable on a 64 bit Centos server. I don't understand though why it is happy running without a fully qualified path in that case.

Can anyone provide any insight into what the problem is?

Thanks advance

Brad
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

What does bad elf flags mean?

Hi all! Could anybody tell me what this means? # /usr/local/sbin/sshd ld.so.1: /usr/local/sbin/sshd: fatal: /usr/local/lib/libcrypto.so.0.9.6: bad ELF flags value: 256 Killed Thanx (1 Reply)
Discussion started by: penguin-friend
1 Replies

2. Shell Programming and Scripting

/bin/sh: bad interpreter: Permission denied

today i started the LFS book (version 4.0). Basically i am using slackware 9.0 to try and install a new linux completely from source on another partition. Now i took the book's recommendations and created a user called lfs so i wouldn't have to do the stuff as root, and i have got the new LFS... (4 Replies)
Discussion started by: Calum
4 Replies

3. UNIX for Dummies Questions & Answers

bad interpreter: Permission denied

I am writing an expect script but am getting a bad interpreter: permission denied error. I don't think the error has anything to do with expect itself, I think I am missing something in how I start the file. For instance, when I run the file under the expect directory it works: cd... (7 Replies)
Discussion started by: earnstaf
7 Replies

4. Ubuntu

How to resolve bad interpreter error

Hi, Iam trying to run a gmake command and have the latest version of Gnu in my redhat linux system. I need to execute the following steps; ---> chmod +x utils/* ---> ./utils/AllCodeManagerFix ---> gmake LINUX Iam able to do the chmod command but when I run the second command I get... (2 Replies)
Discussion started by: viji19812001
2 Replies

5. Shell Programming and Scripting

Perl - bad interpreter: No such file or directory

Here is a puzzler. To start, let me say that I've done a search on this issue and it is definitely not related to line endings being encoded in windows returns. I get this error when I run SOME perl scripts. I have a script called hello_world.pl. I do $cp hello_world.pl new_hello_world.pl... (0 Replies)
Discussion started by: mjmtaiwan
0 Replies

6. Shell Programming and Scripting

bad interpreter: Permission denied

Hi I am running a script: #!bin/bash set -x echo"select * from celldatamap;" || sqlcsv -v -h -s ',' -d MTNSA11G -u datasafe -p datasafe > andrea.csv When I run my script ./tablescript.sh I get the following error: $ ./tablescript.sh (3 Replies)
Discussion started by: ladyAnne
3 Replies

7. Shell Programming and Scripting

bad interpreter when running script

Hi All, I'm not confortable in writing script, can someone can help me, when I run that script below i found this error code : -bash: ./script.sh: /bin/sh.: bad interpreter: Here is the script for i in * x=${i##*.} z=$(perl -e 'print time;') t=$(echo $z-$x|bc)... (12 Replies)
Discussion started by: bzb23
12 Replies

8. Shell Programming and Scripting

Bad Interpreter

Hi. My name is Caleb (a.k.a RagingNinja) form the whited00r forums. (Whited00r makes custom firmware for iOS devices). I have been learning and creating simple shells scripts. I have been recently using VIM for Windows or using VirtualBox to run the UBUNTU OS within VirtualBox to create my shell... (2 Replies)
Discussion started by: RagingNinja
2 Replies

9. Solaris

Wrong ELF data format: ELFDATA2MSB at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm

We are trying to install our project on solaris 10 x86 machine. we are getting the following error. Can't load '/u01/apps/WatchMark/FlexPM//R39FOA1/sw/perl/lib/auto/DBI/DBI.so' for module DBI: ld.so.1: perl: fatal: /u01/apps/WatchMark/FlexPM//R39FOA1/sw/perl/lib/auto/DBI/DBI.so: wrong ELF data... (3 Replies)
Discussion started by: Jagandadi
3 Replies

10. Red Hat

Not able to run any command /lib64/ld-Linux-x86-64.so.2: bad ELF interpreter

Hi, I accidentally did this: wadhwaso@nxsdgd01 deps]$sudo rpm -e --nodeps glibc-2.5-107.x86_64 error: %postun(glibc-2.5-107.x86_64) scriptlet failed, exit status 255 and since then I am not able to run any command on this server except 'cd'. I always get the following error: $ ls... (6 Replies)
Discussion started by: stunn3r
6 Replies
efdaemon(1M)						  System Administration Commands					      efdaemon(1M)

NAME
efdaemon - embedded FCode interpreter daemon SYNOPSIS
/usr/lib/efcode/sparcv9/efdaemon [-d] DESCRIPTION
efdaemon, the embedded FCode interpreter daemon, invokes the embedded FCode interpreter when the daemon receives an interpretation request. A new session of the interpreter is started for each unique request by invoking the script /usr/lib/efcode/efcode. efdaemon is used on selected platforms as part of the processing of some dynamic reconfiguration events. OPTIONS
The following option is supported: -d Set debug output. Log debug messages as LOG_DEBUG level messages by using syslog(). See syslog(3C). FILES
/dev/fcode FCode interpreter pseudo device, which is a portal for receipt of FCode interpretation requests /usr/lib/efcode/efcode Shell script that invokes the embedded FCode interpreter /usr/lib/efcode/interpreter Embedded FCode interpreter /usr/lib/efcode/sparcv9/interpreter Embedded FCode interpreter ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------------------+ |Availability |SUNWefcx, SUNWefcux, SUNWefcr, SUNWefclx | +-----------------------------+-----------------------------------------+ SEE ALSO
svcs(1), prtconf(1M), svcadm(1M), syslog(3C), attributes(5), smf(5) NOTES
The efdaemon service is managed by the service management facility, smf(5), under the service identifier: svc:/platform/sun4u/efdaemon:default Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser- vice's status can be queried using the svcs(1) command. SunOS 5.11 10 Aug 2004 efdaemon(1M)
All times are GMT -4. The time now is 03:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy