LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-10-2010, 05:56 PM   #1
Ubunoob001
Member
 
Registered: Feb 2010
Location: New Orleans, LA
Distribution: Mint 16 RC, Elementary OS Luna, Crunchbang
Posts: 166

Rep: Reputation: 16
Smile installing .gz file..: "make: Error 127 chmod 755 "


So I am new to linux and computing in general:


I am installing curphoo ( a yahoo chat client). The README file contains the following text:
Code:
You need a Python 2.4 series interpretter starting with Curphoo 0.4.0.
Starting with 0.4.0, Curphoo uses a purely Python implementation of
the YMSG authentication protocol.  It also uses new functions found
only Python 2.4's curses module.

Curphoo 0.3.12 continues to work with Python 2.1, 2.2 an 2.3 however,
but you will need a GNU development toolchain and also the headers for
your curses implementation installed.

* Installation 

    1. Unpack the source tarball
    2. cd to the newly made directory
    3. Type make (or gmake on bsd)
    4. Type ./curphoo
    5. Enjoy!
When I get to step 3, I get the following:
Code:
~/Desktop/curphoo/curphoo-0.4.3-3$ make
/bin/sh: c: not found
make: [curphoo] Error 127 (ignored)
chmod 755 curphoo
I have python version 2.6.5 and the contents of the unpacked curphoo directory are:
Code:
AUTHORS       cmdparser.py  encodep.py         Makefile       shexec.py
babelizer.py  color         Entry.py           md5crypt.py    yahoodef.py
boot.py       commands      floo2phoo          output.py      yahoo_fn.py
BUGS          COPYING       ignoremsg.donkey   pickle2txt.py  YahooMD5.py
ChangeLog     cpformat.py   ignoremsg.iggygun  pysha.py       Yahoo.py
clopt.py      curphoo.1     __init__.py        README
cmdhelp.py    driver.py     m9dec.py           Session.py
also in the place of step 3 of install instructions i have tried ./make which yields:
Code:
./make
bash: ./make: No such file or directory
 
Old 10-10-2010, 10:17 PM   #2
binary_pearl
Member
 
Registered: Jul 2007
Location: Chicago Illinois
Distribution: SLES 10 SP2/SP3, SLES 11 SP1, OpenSUSE, Sabayon, Gentoo, Fedora 14, RHEL 3/4/5/6
Posts: 98
Blog Entries: 1

Rep: Reputation: 23
Unless you need Curphoo specifically, it may be easier to install pidgin instead (http://www.pidgin.im/).

--Shaun

Last edited by binary_pearl; 10-10-2010 at 10:18 PM. Reason: I'm drunk...fixing typos
 
Old 10-11-2010, 09:09 AM   #3
Ubunoob001
Member
 
Registered: Feb 2010
Location: New Orleans, LA
Distribution: Mint 16 RC, Elementary OS Luna, Crunchbang
Posts: 166

Original Poster
Rep: Reputation: 16
Smile

Quote:
Originally Posted by binary_pearl View Post
Unless you need Curphoo specifically, it may be easier to install pidgin instead (http://www.pidgin.im/).

--Shaun
Shaun, yeah I have pidgin, however I would prefer a more simple curses/menu interface. Any suggestion on what might be wrong?
 
Old 10-11-2010, 11:33 AM   #4
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,985

Rep: Reputation: Disabled
Quote:
Also in the place of step 3 of install instructions i have tried ./make which yields:
Code:
./make
bash: ./make: No such file or directory
make is found in the /usr/bin folder. When you type ./make you are asking your system to look for make in the current folder. But since make is not there that command must fail.
jdk
 
Old 10-11-2010, 11:51 AM   #5
Ubunoob001
Member
 
Registered: Feb 2010
Location: New Orleans, LA
Distribution: Mint 16 RC, Elementary OS Luna, Crunchbang
Posts: 166

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jdkaye View Post
make is found in the /usr/bin folder. When you type ./make you are asking your system to look for make in the current folder. But since make is not there that command must fail.
jdk
so ./make is not a valid command in a folder other than /usr/bin?
 
Old 10-11-2010, 12:10 PM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by Ubunoob001 View Post
so ./make is not a valid command in a folder other than /usr/bin?
Yes, because make resides in /usr/bin. If you want to use it from any other directory, omit the "./", because /usr/bin is in your PATH.
 
Old 10-11-2010, 12:12 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
"./" is not part of the command, it specifies a path. "." means current directory.

So if you run "./make" in your home dir it would be the same as writing "/home/username/make".

If you do not explicitly specify a path, it's searched for in the directories in the PATH variable (run "echo $PATH" to see it).
 
Old 10-11-2010, 12:17 PM   #8
Ubunoob001
Member
 
Registered: Feb 2010
Location: New Orleans, LA
Distribution: Mint 16 RC, Elementary OS Luna, Crunchbang
Posts: 166

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Nylex View Post
Yes, because make resides in /usr/bin. If you want to use it from any other directory, omit the "./", because /usr/bin is in your PATH.
okay thanks, any suggestion as to why "make" doesn't work?
 
Old 10-11-2010, 12:20 PM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Quote:
Originally Posted by Ubunoob001 View Post
okay thanks, any suggestion as to why "make" doesn't work?
You mean this, right?

Code:
~/Desktop/curphoo/curphoo-0.4.3-3$ make
/bin/sh: c: not found
make: [curphoo] Error 127 (ignored)
chmod 755 curphoo
I have no idea what this "c" is. How about posting the Makefile here (in [code] tags, of course!).
 
Old 10-11-2010, 12:42 PM   #10
Ubunoob001
Member
 
Registered: Feb 2010
Location: New Orleans, LA
Distribution: Mint 16 RC, Elementary OS Luna, Crunchbang
Posts: 166

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by MTK358 View Post
You mean this, right?

Code:
~/Desktop/curphoo/curphoo-0.4.3-3$ make
/bin/sh: c: not found
make: [curphoo] Error 127 (ignored)
chmod 755 curphoo
I have no idea what this "c" is. How about posting the Makefile here (in [code] tags, of course!).
mtk,here is the MAKEFILE
Code:
pathsearch = $(firstword $(wildcard $(addsuffix /$(1),$(subst :, ,$(PATH)))))
py = python2.4
pybin = $(firstword $(foreach e,$(py),$(call pathsearch,$(e))))
pyver = `$(pybin) -c 'import sys; print sys.version[:3]'`
pyprefix = `$(pybin) -c 'import sys; print sys.prefix'`
pyinc = $(pyprefix)/include/python$(pyver)
pylib = $(pyprefix)/lib/python$(pyver)
prefix = /usr/local
bindir = $(prefix)/bin

all: curphoo

clean:
    @rm -vf *.pyc curphoo

.PHONY: testversion curphoo 

testversion :
    @$(pybin) -c 'import sys; sys.version_info[0] == 2 or sys.exit(1)'

curphoo:
    @$(pybin) -c "print '''#!$(pybin)\n\nimport boot\n__name__=='__main__' and boot.go()'''" >curphoo
    chmod 755 curphoo
thanks for the help

Last edited by Ubunoob001; 10-11-2010 at 12:44 PM.
 
Old 10-11-2010, 12:45 PM   #11
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
I have no idea. Try making a copy of the Makefile and naming it Makefile.backup, in case we mess it up. I'd try replacing

Code:
pybin = $(firstword $(foreach e,$(py),$(call pathsearch,$(e))
with

Code:
pybin = <path>
replacing <path> with the output of "which python".
 
1 members found this post helpful.
Old 10-11-2010, 12:53 PM   #12
Ubunoob001
Member
 
Registered: Feb 2010
Location: New Orleans, LA
Distribution: Mint 16 RC, Elementary OS Luna, Crunchbang
Posts: 166

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by MTK358 View Post
I have no idea. Try making a copy of the Makefile and naming it Makefile.backup, in case we mess it up. I'd try replacing

Code:
pybin = $(firstword $(foreach e,$(py),$(call pathsearch,$(e))
with

Code:
pybin = <path>
replacing <path> with the output of "which python".
mtk, it yeilds:
Code:
make
/bin/sh: cannot open path: No such file
/bin/sh: print '''#!<path>\n\nimport boot\n__name__=='__main__' and boot.go()''': not found
make: *** [curphoo] Error 127
 
Old 10-11-2010, 01:01 PM   #13
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Did you type the path to the Python executable instead of <path>?
 
Old 10-11-2010, 01:10 PM   #14
Ubunoob001
Member
 
Registered: Feb 2010
Location: New Orleans, LA
Distribution: Mint 16 RC, Elementary OS Luna, Crunchbang
Posts: 166

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by MTK358 View Post
Did you type the path to the Python executable instead of <path>?
lol, wow im quite a noobie huh? /usr/bin/Python2.6 worked!

MTK, i cant thank you enough for your patience!
 
Old 10-11-2010, 01:39 PM   #15
Ubunoob001
Member
 
Registered: Feb 2010
Location: New Orleans, LA
Distribution: Mint 16 RC, Elementary OS Luna, Crunchbang
Posts: 166

Original Poster
Rep: Reputation: 16
you guys have been great. I did recieve this warning when ./curphoo:
Code:
The popen2 module is deprecated.  Use the subprocess module.
  import popen2
/home/xxxxx/.local/share/Trash/files/curphoo-0.4.3-3/YahooMD5.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
note file is moved out of trash.


however hopefully i can solve this with some google searching...anyway thanks again. Thread solved
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error installing "Mac On Linux" when i run make and make install rohedin Linux - Software 4 06-22-2010 07:30 AM
glibc2.3.4 make, produces error "memcmp... file address 68" tgp1994 Linux - Software 5 11-28-2009 09:51 AM
Error "No rule to make target" while installing Linux Kernel 2.6.25.10 Dufresne Linux - Newbie 3 07-08-2008 03:57 PM
Error installing No-IP Client, "sudo make install" not working ACSUSA Ubuntu 2 06-27-2008 09:06 AM
LFS6.3 - Ch5.4.1 "/bin/sh sort not found" error at "make bootstrap" ubyt3m3 Linux From Scratch 2 06-23-2008 01:09 AM


All times are GMT -5. The time now is 08:16 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration