Networking Forums

Networking Forums > Computer Networking > Linux Networking > Any body is learning the Unix Network Programing Vol 1?

Reply
Thread Tools Display Modes

Any body is learning the Unix Network Programing Vol 1?

 
 
Hualin
Guest
Posts: n/a

 
      03-10-2005, 04:23 PM
How to run the examples?

I changes the property of configure to executable. But when I type
../configure
It said
../configure: Command not found
I have tried this on IBM unix, Linux, Sun, I got the same thing.

Any help?
Thanks a lot.


 
Reply With Quote
 
 
 
 
Paul Hilton
Guest
Posts: n/a

 
      03-10-2005, 05:53 PM
On Thu, 10 Mar 2005 12:23:29 -0500, Hualin wrote:

> How to run the examples?
>
> I changes the property of configure to executable. But when I type
> ./configure
> It said
> ./configure: Command not found
> I have tried this on IBM unix, Linux, Sun, I got the same thing.
>
> Any help?
> Thanks a lot.


The ./ part means 'in the current working directory'
configure is a file that often comes with source code, and adapts the
details of the software to be compiled to the details of your system
(where to find libraries etc.)

Make sure that your current working directory is where you have put the
software you are trying to build.

 
Reply With Quote
 
Hualin
Guest
Posts: n/a

 
      03-10-2005, 08:50 PM
Thanks.
The directory should be all right.

"Paul Hilton" <(E-Mail Removed)> wrote in message
news(E-Mail Removed) ...
> On Thu, 10 Mar 2005 12:23:29 -0500, Hualin wrote:
>
>> How to run the examples?
>>
>> I changes the property of configure to executable. But when I type
>> ./configure
>> It said
>> ./configure: Command not found
>> I have tried this on IBM unix, Linux, Sun, I got the same thing.
>>
>> Any help?
>> Thanks a lot.

>
> The ./ part means 'in the current working directory'
> configure is a file that often comes with source code, and adapts the
> details of the software to be compiled to the details of your system
> (where to find libraries etc.)
>
> Make sure that your current working directory is where you have put the
> software you are trying to build.
>



 
Reply With Quote
 
Peter Greenwood
Guest
Posts: n/a

 
      03-11-2005, 03:36 PM
In article <d0qffs$g3j$(E-Mail Removed)>,
"Hualin" <(E-Mail Removed)> writes:
>> On Thu, 10 Mar 2005 12:23:29 -0500, Hualin wrote:
>>
>>> How to run the examples?
>>>
>>> I changes the property of configure to executable. But when I type
>>> ./configure
>>> It said
>>> ./configure: Command not found
>>> I have tried this on IBM unix, Linux, Sun, I got the same thing.


Maybe the configure script is corrupted, and is trying to run a command
that isn't in your path?

--
Peter Greenwood (E-Mail Removed)
http://www.pgid.co.uk
+44 1253 821678
 
Reply With Quote
 
Hualin
Guest
Posts: n/a

 
      03-11-2005, 04:06 PM
Yes, I guess so.

"Peter Greenwood" <(E-Mail Removed)> wrote in message
news:d0shf1$nk6$(E-Mail Removed)...
> In article <d0qffs$g3j$(E-Mail Removed)>,
> "Hualin" <(E-Mail Removed)> writes:
>>> On Thu, 10 Mar 2005 12:23:29 -0500, Hualin wrote:
>>>
>>>> How to run the examples?
>>>>
>>>> I changes the property of configure to executable. But when I type
>>>> ./configure
>>>> It said
>>>> ./configure: Command not found
>>>> I have tried this on IBM unix, Linux, Sun, I got the same thing.

>
> Maybe the configure script is corrupted, and is trying to run a command
> that isn't in your path?
>
> --
> Peter Greenwood (E-Mail Removed)
> http://www.pgid.co.uk
> +44 1253 821678



 
Reply With Quote
 
Paul Hilton
Guest
Posts: n/a

 
      03-11-2005, 04:57 PM
On Fri, 11 Mar 2005 16:36:49 +0000, Peter Greenwood wrote:

> In article <d0qffs$g3j$(E-Mail Removed)>,
> "Hualin" <(E-Mail Removed)> writes:
>>> On Thu, 10 Mar 2005 12:23:29 -0500, Hualin wrote:
>>>
>>>> How to run the examples?
>>>>
>>>> I changes the property of configure to executable. But when I type
>>>> ./configure
>>>> It said
>>>> ./configure: Command not found
>>>> I have tried this on IBM unix, Linux, Sun, I got the same thing.

>
> Maybe the configure script is corrupted, and is trying to run a command
> that isn't in your path?


The error was that the configure command itself isn't found. Maybe it's
permissions do not include executable by the current user?

 
Reply With Quote
 
Hualin
Guest
Posts: n/a

 
      03-11-2005, 05:04 PM
I used chmod a+x configure. Anyone should be able to excute it.


"Paul Hilton" <(E-Mail Removed)> wrote in message
news(E-Mail Removed) ...
> On Fri, 11 Mar 2005 16:36:49 +0000, Peter Greenwood wrote:
>
>> In article <d0qffs$g3j$(E-Mail Removed)>,
>> "Hualin" <(E-Mail Removed)> writes:
>>>> On Thu, 10 Mar 2005 12:23:29 -0500, Hualin wrote:
>>>>
>>>>> How to run the examples?
>>>>>
>>>>> I changes the property of configure to executable. But when I type
>>>>> ./configure
>>>>> It said
>>>>> ./configure: Command not found
>>>>> I have tried this on IBM unix, Linux, Sun, I got the same thing.

>>
>> Maybe the configure script is corrupted, and is trying to run a command
>> that isn't in your path?

>
> The error was that the configure command itself isn't found. Maybe it's
> permissions do not include executable by the current user?
>



 
Reply With Quote
 
Douglas O'Neal
Guest
Posts: n/a

 
      03-11-2005, 05:45 PM
Hualin wrote:
> I used chmod a+x configure. Anyone should be able to excute it.
>
>
> "Paul Hilton" <(E-Mail Removed)> wrote in message
> news(E-Mail Removed) ...
>
>>On Fri, 11 Mar 2005 16:36:49 +0000, Peter Greenwood wrote:
>>
>>
>>>In article <d0qffs$g3j$(E-Mail Removed)>,
>>>"Hualin" <(E-Mail Removed)> writes:
>>>
>>>>>On Thu, 10 Mar 2005 12:23:29 -0500, Hualin wrote:
>>>>>
>>>>>
>>>>>>How to run the examples?
>>>>>>
>>>>>>I changes the property of configure to executable. But when I type
>>>>>>./configure
>>>>>>It said
>>>>>>./configure: Command not found
>>>>>>I have tried this on IBM unix, Linux, Sun, I got the same thing.
>>>
>>>Maybe the configure script is corrupted, and is trying to run a command
>>>that isn't in your path?

>>
>>The error was that the configure command itself isn't found. Maybe it's
>>permissions do not include executable by the current user?
>>


How about showing us the output of:

ls -l configure
head -1 configure
echo $PATH
 
Reply With Quote
 
Floyd L. Davidson
Guest
Posts: n/a

 
      03-11-2005, 06:00 PM
"Hualin" <(E-Mail Removed)> wrote:
>I used chmod a+x configure. Anyone should be able to excute it.


Do "/bin/ls -l ./configure" and verify that it is in fact
executable. The permission string should look something like
"-rwxr-xr-x".

The configure program should be a shell script. Take a look at
it with a text editor, and note the first line, which might look
something like this:

#!/bin/sh

If the command in that first line is not executable, you will
get an error message. Is possible that the script has a
different path or a different shell than whatever your system
has?

As a last resort... lets follow a logical approach and
narrow down what is and what is not working. Do this:

$ mv ./configure ./configure.orig
$ echo "echo \"This is my configure.\"" > ./configure
$ chmod 755 ./configure
$ ./configure

That should result in "This is my configure." being output to the
screen. If so, do "mv configure.orig configure" to restore the
original. If not, find out why. (Post your results here and
we'll think of ways to figure out what is going on.)

--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
 
Hualin
Guest
Posts: n/a

 
      03-11-2005, 06:13 PM
Appreciate the help from all your guys!

I think the scsript is not correct, although I got it from the offical
webpage.
The first line of the script is #! /bin/sh

So, I use the command
/bin/sh configure

Here is the output
: command not found
configure: line 21: syntax error near unexpected token 'elif'
configure: line 21: 'elif test -n "${BASH_VERSION+set}" && (set -o posix)
>/dev/

'ull 2>&1;then

By the way, the source code is here
http://www.unpbook.com/src.html



"Douglas O'Neal" <(E-Mail Removed)> wrote in message
news:d0sovu$6fl$(E-Mail Removed)...
> Hualin wrote:
>> I used chmod a+x configure. Anyone should be able to excute it.
>>
>>
>> "Paul Hilton" <(E-Mail Removed)> wrote in message
>> news(E-Mail Removed) ...
>>
>>>On Fri, 11 Mar 2005 16:36:49 +0000, Peter Greenwood wrote:
>>>
>>>
>>>>In article <d0qffs$g3j$(E-Mail Removed)>,
>>>>"Hualin" <(E-Mail Removed)> writes:
>>>>
>>>>>>On Thu, 10 Mar 2005 12:23:29 -0500, Hualin wrote:
>>>>>>
>>>>>>
>>>>>>>How to run the examples?
>>>>>>>
>>>>>>>I changes the property of configure to executable. But when I type
>>>>>>>./configure
>>>>>>>It said
>>>>>>>./configure: Command not found
>>>>>>>I have tried this on IBM unix, Linux, Sun, I got the same thing.
>>>>
>>>>Maybe the configure script is corrupted, and is trying to run a command
>>>>that isn't in your path?
>>>
>>>The error was that the configure command itself isn't found. Maybe it's
>>>permissions do not include executable by the current user?
>>>

>
> How about showing us the output of:
>
> ls -l configure
> head -1 configure
> echo $PATH



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
learning network protocol testing Wills Linux Networking 0 08-28-2007 02:28 PM
learning network protocol testing Wills Linux Networking 0 08-28-2007 02:28 PM
Help me please : WepKey Changer Programing (Windows) Truty Wireless Networks 2 03-29-2006 10:52 PM
Help me please : WepKey Changer Programing (Windows) Truty Wireless Internet 20 03-29-2006 10:28 PM
Wireless Base Station Programing Windows Networking 1 01-22-2004 09:27 PM



1 2 3 4 5 6 7 8 9 10 11