LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing .gz file..: "make: Error 127 chmod 755 " (https://www.linuxquestions.org/questions/linux-newbie-8/installing-gz-file-make-error-127-chmod-755-a-837271/)

Ubunoob001 10-10-2010 04:56 PM

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


binary_pearl 10-10-2010 09:17 PM

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

--Shaun

Ubunoob001 10-11-2010 08:09 AM

Quote:

Originally Posted by binary_pearl (Post 4123357)
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?

jdkaye 10-11-2010 10:33 AM

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

Ubunoob001 10-11-2010 10:51 AM

Quote:

Originally Posted by jdkaye (Post 4123981)
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?

Nylex 10-11-2010 11:10 AM

Quote:

Originally Posted by Ubunoob001 (Post 4123999)
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.

MTK358 10-11-2010 11:12 AM

"./" 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).

Ubunoob001 10-11-2010 11:17 AM

Quote:

Originally Posted by Nylex (Post 4124020)
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?

MTK358 10-11-2010 11:20 AM

Quote:

Originally Posted by Ubunoob001 (Post 4124032)
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!).

Ubunoob001 10-11-2010 11:42 AM

Quote:

Originally Posted by MTK358 (Post 4124036)
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

MTK358 10-11-2010 11:45 AM

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".

Ubunoob001 10-11-2010 11:53 AM

Quote:

Originally Posted by MTK358 (Post 4124070)
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


MTK358 10-11-2010 12:01 PM

Did you type the path to the Python executable instead of <path>?

Ubunoob001 10-11-2010 12:10 PM

Quote:

Originally Posted by MTK358 (Post 4124091)
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!

Ubunoob001 10-11-2010 12:39 PM

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


All times are GMT -5. The time now is 10:34 PM.