LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-08-2003, 03:50 AM   #1
zekko
Member
 
Registered: Aug 2003
Location: Canada
Distribution: Slackware, debian
Posts: 76

Rep: Reputation: 15
Problem running execute binary file


Hi, I just installed Mandrake the other day, first time with any OS besides Windows and I love it

Anyway, I downloaded BitchX (bitchx.org) because I didn't like the default IRC client, I did everything the website said. But when I type in BitchX in my terminal, it says this:

bash: /usr/local/bin/BitchX: cannot execute binary file

Any idea?

Thanks
 
Old 08-08-2003, 04:01 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Welcome to LQ

Post up what you get from typing:
ls -l /usr/local/bin/BitchX

And tell us what user you are.

Have you tried using X-Chat, it's my favorite

Cool
 
Old 08-08-2003, 04:15 AM   #3
zekko
Member
 
Registered: Aug 2003
Location: Canada
Distribution: Slackware, debian
Posts: 76

Original Poster
Rep: Reputation: 15
This is what I got:

-rwxrwxrwx 1 j j 4361166 Apr 27 2020 /usr/local/bin/BitchX*

My username is: j

I have tried X-Chat, both on Windows and Knoppix (live CD), but some one recommended I used BitchX.

Thanks for the speedy response
 
Old 08-08-2003, 04:55 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well, looks like it shouldn't be a problem with ownership...

Is this by any chance RH9? I'm dealing with a similar question elsewhere on the board, and it's baffling me in the same manner.

Just for kicks can you post up your /etc/fstab ?

Cool
 
Old 08-08-2003, 05:12 AM   #5
zekko
Member
 
Registered: Aug 2003
Location: Canada
Distribution: Slackware, debian
Posts: 76

Original Poster
Rep: Reputation: 15
Nope, I'm running Mandrake

If you're talking about listing the files in the directory /etc/fstab, it says the directory doesn't exist. I also tried just putting in /etc/fstab in my terminal, I get:

bash: /etc/fstab: Permission denied

Even when logged in as root.
 
Old 08-08-2003, 05:25 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Battin a thousand tonite, I should give up

Ok, what's your permissions on /usr/local/bin:
ls -ld /usr/local/bin

And to list the contents of the file /etc/fstab you'd use a text reader like less:
less /etc/fstab
OR cat:
cat /etc/fstab
And post up the contents

Mandrake eh, well I guess that's a good thing as I won't give up and "blame the distro" since I'm a die hard Mandy fan

Cool
 
Old 08-08-2003, 05:31 AM   #7
zekko
Member
 
Registered: Aug 2003
Location: Canada
Distribution: Slackware, debian
Posts: 76

Original Poster
Rep: Reputation: 15
When I do ls -ld /usr/local/bin

drwxr-xr-x 2 root root 4096 Aug 7 02:17 /usr/local/bin/

With cat /etc/fstab

/dev/hdb1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdb6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,umask=0 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0
/dev/hda1 /mnt/windows vfat iocharset=iso8859-1,codepage=850,umask=0 0 0
none /proc proc defaults 0 0
/dev/hdb5 swap swap defaults 0 0
 
Old 08-08-2003, 05:37 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah, uh, it should work

Did you install this from source or was it an RPM? When you are executing it, is that as root or as a user? Finally, can you point me towards the set of instructions you followed?

Cool
 
Old 08-08-2003, 05:48 AM   #9
zekko
Member
 
Registered: Aug 2003
Location: Canada
Distribution: Slackware, debian
Posts: 76

Original Poster
Rep: Reputation: 15
It was binary, I downloaded this:

http://bitchx.org/files/binaries/Lin...2-alpha.tar.gz

Someone suggested I downloaded RPM, I did so and installed it, but couldn't figure out how to execute it from there (sucks being a newbie )

I have tried executing it from both my user account and root.

And theses are the instructions I followed:

http://faq.bitchx.org/view_faq.php?t...itchX+binaries
 
Old 08-08-2003, 06:31 AM   #10
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
here's a silly question - what kind of processor do you have is it an alpha? or more likely is it an x86? try downloading this one instead:
http://bitchx.org/files/binaries/Lin...c2-i386.tar.gz
 
Old 08-08-2003, 06:39 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69


Or rather use your Mandrake tools:
urpmi BitchX

As odd as this is, that was also the apparent problem on the other thread... Seems to be the latest trend. It too was the Alpha version on the download.

Nice catch kev82

Cool
 
Old 08-08-2003, 06:59 AM   #12
zekko
Member
 
Registered: Aug 2003
Location: Canada
Distribution: Slackware, debian
Posts: 76

Original Poster
Rep: Reputation: 15
Well what do you know, it executed

Thanks for the help, I'm kinda embarrassed that it was that easy.

Although I still get an error when executing:

BitchX: error while loading shared libraries: libncurses.so.4: cannot open shared object file: No such file or directory

I'm not sure if this is because I only used 2 cds to install (no international CD). Which also brings me to my next question:

I tried to compile the X-Chat source, but it said it couldn't find any compilers (gcc, cc etc) which sucks, because I also program in C every now and then. When installed I check all dev tools, but I guess thoses files are on the 3rd cd? I thought international would be for other languages. Will I have to completely reinstall Mandrake to change this?

Thanks guys, you've been so much help

[EDIT]

I just tried the 'urpmi BitchX' command, it seemed to work but I still get that error (probably because I already had it installed?).

Last edited by zekko; 08-08-2003 at 07:03 AM.
 
Old 08-08-2003, 07:17 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah, you'll likely have to manually install the ncurses-devel package, and you'll also have to locate which disc it's on

As for your compiler, fire up a terminal:
urpmi gcc

And be prepared for a laundry list, good luck.

Cool
 
Old 08-08-2003, 07:59 AM   #14
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
Quote:
BitchX: error while loading shared libraries: libncurses.so.4: cannot open shared object file: No such file or directory
Quote:
you'll likely have to manually install the ncurses-devel package
that doesnt look like a missing development package, more likely the binary you downloaded was linked against a version of ncurses you dont have, i find it very difficult to believe you dont have ncurses at all. does /usr/lib/libncurses.so exist? if it does then ln -s libncurses.so.4 /usr/lib/libncurses.so executed as root should fix the problem. as far as a compiler goes if you selected devel tools then gcc should have been installed as i seem to remember its on the first disk more likely XChat just cant find it. check if gcc is in your /usr/bin before you start an installation nightmare.

<edit>btw does anyone know how in a quote to say who its from i read the faq a while ago and couldnt find it.

Last edited by kev82; 08-08-2003 at 08:01 AM.
 
Old 08-08-2003, 11:03 AM   #15
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah with the:
{quote}{i}Originally posted by Person{/i}
{b} Words {/b}{/quote}



Of course all the { are actually [

And as far as the ncurses bit, that is even more odd because of the version. I've always (if at all) had a missing libncurses.so.5 that was the issue, which was always resolved by installing the libncurses-devel rpm (or compiling the source ). And although I agree with your reasoning, I cannot for the life of me remember using Mandrake and having to set the GCC path because it wasn't there by default. But, that would definitely make sense, especially if they installed all the development tools. But since it was a "group" of packages, it's a bit possible that gcc wasn't in that "group". urpmi should report if it's installed though, or a:
rpm -qa | grep gcc
Would at least bring up a bit on it.



Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot execute binary file pbagda Linux - General 4 01-19-2004 01:13 AM
Please help!! Problem on running execute file!! mkwong107 Linux - General 11 10-20-2003 05:59 PM
Please help!! Problem on running execute file!! mkwong107 Linux - General 0 10-20-2003 04:21 PM
Cannot execute binary file Bigun Linux - Software 17 11-03-2002 06:12 PM
cannot execute binary file.... ttaylor Linux - General 4 10-02-2001 01:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration