[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Can't Build Ruby 1.8.1 on HP-UX 11.00

Yukihiro Matsumoto

11/18/2004 11:22:00 PM

Hi,

In message "Re: Can't Build Ruby 1.8.1 on HP-UX 11.00"
on Fri, 19 Nov 2004 06:27:23 +0900, Kevin Hinners <kevin.hinners@fedex.com> writes:

|I downloaded the 1.8.2 preview 3 release and tried to install to HP-UX
|11.00.

Hmm, seems like lex.c in your directory corrupted. Can you check?

matz.


8 Answers

WATANABE Hirofumi

11/19/2004 3:44:00 AM

0

Hi,

Yukihiro Matsumoto <matz@ruby-lang.org> writes:

> In message "Re: Can't Build Ruby 1.8.1 on HP-UX 11.00"
> on Fri, 19 Nov 2004 06:27:23 +0900, Kevin Hinners <kevin.hinners@fedex.com> writes:
>
> |I downloaded the 1.8.2 preview 3 release and tried to install to HP-UX
> |11.00.
>
> Hmm, seems like lex.c in your directory corrupted. Can you check?

% tar tfvz ruby-1.8.2-preview3.tar.gz |grep -A1 keywords
-rw-r--r-- matz/matz 1396 2002-09-28 20:08:59 ruby-1.8.2/keywords
-rw-r--r-- matz/matz 4480 2002-09-28 20:08:59 ruby-1.8.2/lex.c

See [ruby-list:8212], [ruby-list:8214]

--
eban


Yukihiro Matsumoto

11/19/2004 4:57:00 AM

0

Hi,

In message "Re: Can't Build Ruby 1.8.1 on HP-UX 11.00"
on Fri, 19 Nov 2004 12:43:38 +0900, WATANABE Hirofumi <eban@os.rim.or.jp> writes:

|> Hmm, seems like lex.c in your directory corrupted. Can you check?
|
|% tar tfvz ruby-1.8.2-preview3.tar.gz |grep -A1 keywords
|-rw-r--r-- matz/matz 1396 2002-09-28 20:08:59 ruby-1.8.2/keywords
|-rw-r--r-- matz/matz 4480 2002-09-28 20:08:59 ruby-1.8.2/lex.c
|
|See [ruby-list:8212], [ruby-list:8214]

To whom don't read Japanese, it's caused by HP make that tries to
generate the source file (keywords) to the destination file (lex.c)
when both have exactly same timestamp.

Does anyone know why this situation happens repeatedly on the CVS, and
how to fix the problem?

matz.


Kevin Hinners

11/19/2004 5:02:00 AM

0

Okay, I did a fresh extract and a fresh ./configure. I verified that lex.c
was correct. Now, when I do a make, I get this error:

[gdpdev]:ROOT:(1)ruby/ruby-1.8.2> make
gcc -g -O2 -I. -I. -c array.c
gcc -g -O2 -I. -I. -c bignum.c
gcc -g -O2 -I. -I. -c class.c
gcc -g -O2 -I. -I. -c compar.c
gcc -g -O2 -I. -I. -c dir.c
gcc -g -O2 -I. -I. -c dln.c
gcc -g -O2 -I. -I. -c enum.c
gcc -g -O2 -I. -I. -c error.c
gcc -g -O2 -I. -I. -c eval.c
gcc -g -O2 -I. -I. -c file.c
gcc -g -O2 -I. -I. -c gc.c
gcc -g -O2 -I. -I. -c hash.c
gcc -g -O2 -I. -I. -c inits.c
gcc -g -O2 -I. -I. -c io.c
gcc -g -O2 -I. -I. -c marshal.c
gcc -g -O2 -I. -I. -c math.c
gcc -g -O2 -I. -I. -c numeric.c
gcc -g -O2 -I. -I. -c object.c
gcc -g -O2 -I. -I. -c pack.c
gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$ keywords >
lex.c || cp "./lex.c" .
sh: gperf: not found.
cp: ./lex.c and ./lex.c are identical
*** Error exit code 1

At this point, now, lex.c has been truncated to 0 bytes. Running make again,
produces the previous error I had posted. Has anyone been able to build Ruby
1.8.1 or 1.8.2 on HP-UX?


Kevin Hinners
Senior Technical Analyst

FedEx Services
350 Spectrum Loop
Colorado Springs, CO 80921
719-484-2303
kevin.hinners@fedex.com


-----Original Message-----
From: Yukihiro Matsumoto [mailto:matz@ruby-lang.org]
Sent: Thursday, November 18, 2004 4:22 PM
To: ruby-talk ML
Subject: Re: Can't Build Ruby 1.8.1 on HP-UX 11.00


Hi,

In message "Re: Can't Build Ruby 1.8.1 on HP-UX 11.00"
on Fri, 19 Nov 2004 06:27:23 +0900, Kevin Hinners
<kevin.hinners@fedex.com> writes:

|I downloaded the 1.8.2 preview 3 release and tried to install to HP-UX
|11.00.

Hmm, seems like lex.c in your directory corrupted. Can you check?

matz.





Jamis Buck

11/19/2004 5:22:00 AM

0

Kevin Hinners wrote:
> Okay, I did a fresh extract and a fresh ./configure. I verified that lex.c
> was correct. Now, when I do a make, I get this error:
>
> [gdpdev]:ROOT:(1)ruby/ruby-1.8.2> make
> gcc -g -O2 -I. -I. -c array.c
> gcc -g -O2 -I. -I. -c bignum.c
> gcc -g -O2 -I. -I. -c class.c
> gcc -g -O2 -I. -I. -c compar.c
> gcc -g -O2 -I. -I. -c dir.c
> gcc -g -O2 -I. -I. -c dln.c
> gcc -g -O2 -I. -I. -c enum.c
> gcc -g -O2 -I. -I. -c error.c
> gcc -g -O2 -I. -I. -c eval.c
> gcc -g -O2 -I. -I. -c file.c
> gcc -g -O2 -I. -I. -c gc.c
> gcc -g -O2 -I. -I. -c hash.c
> gcc -g -O2 -I. -I. -c inits.c
> gcc -g -O2 -I. -I. -c io.c
> gcc -g -O2 -I. -I. -c marshal.c
> gcc -g -O2 -I. -I. -c math.c
> gcc -g -O2 -I. -I. -c numeric.c
> gcc -g -O2 -I. -I. -c object.c
> gcc -g -O2 -I. -I. -c pack.c
> gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$ keywords >
> lex.c || > cp "./lex.c" .
> sh: gperf: not found.
> cp: ./lex.c and ./lex.c are identical
> *** Error exit code 1
>
> At this point, now, lex.c has been truncated to 0 bytes. Running make again,
> produces the previous error I had posted. Has anyone been able to build Ruby
> 1.8.1 or 1.8.2 on HP-UX?

Yes. I had to download and compile the GNU gperf utility, though. Seems
like there might have been a few other things I had to grab. My approach
my not have been the most efficient, though. If anyone knows of a better
way, I'd love to hear it.

- Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck...


Hal E. Fulton

11/19/2004 5:25:00 AM

0

Jamis Buck wrote:
>> sh: gperf: not found.
>> cp: ./lex.c and ./lex.c are identical
>> *** Error exit code 1
>>
>> At this point, now, lex.c has been truncated to 0 bytes. Running make
>> again,
>> produces the previous error I had posted. Has anyone been able to
>> build Ruby
>> 1.8.1 or 1.8.2 on HP-UX?
>
>
> Yes. I had to download and compile the GNU gperf utility, though. Seems
> like there might have been a few other things I had to grab. My approach
> my not have been the most efficient, though. If anyone knows of a better
> way, I'd love to hear it.

Yes, the "gperf not found" seems to be the real logjam at this point.

Should configure check for that??


Hal



Yukihiro Matsumoto

11/19/2004 5:59:00 AM

0

Hi,

In message "Re: Can't Build Ruby 1.8.1 on HP-UX 11.00"
on Fri, 19 Nov 2004 14:01:43 +0900, Kevin Hinners <kevin.hinners@fedex.com> writes:

|Okay, I did a fresh extract and a fresh ./configure. I verified that lex.c
|was correct. Now, when I do a make, I get this error:

For a workaround, try "touch lex.c" right after the unpacking.

matz.


Kevin Hinners

11/19/2004 6:11:00 AM

0

Given up on ruby for now...


Kevin Hinners
Senior Technical Analyst

FedEx Services
350 Spectrum Loop
Colorado Springs, CO 80921
719-484-2303
kevin.hinners@fedex.com


-----Original Message-----
From: Yukihiro Matsumoto [mailto:matz@ruby-lang.org]
Sent: Thursday, November 18, 2004 10:59 PM
To: ruby-talk ML
Subject: Re: Can't Build Ruby 1.8.1 on HP-UX 11.00


Hi,

In message "Re: Can't Build Ruby 1.8.1 on HP-UX 11.00"
on Fri, 19 Nov 2004 14:01:43 +0900, Kevin Hinners
<kevin.hinners@fedex.com> writes:

|Okay, I did a fresh extract and a fresh ./configure. I verified that lex.c
|was correct. Now, when I do a make, I get this error:

For a workaround, try "touch lex.c" right after the unpacking.

matz.





Yukihiro Matsumoto

11/19/2004 7:57:00 AM

0

Hi,

In message "Re: Can't Build Ruby 1.8.1 on HP-UX 11.00"
on Fri, 19 Nov 2004 15:10:51 +0900, Kevin Hinners <kevin.hinners@fedex.com> writes:

|Given up on ruby for now...

Do you mean you still having compiling problem after the workaround?
Or you didn't know how to do that workaround?

% tar zxvf ruby-1.8.2-preview3.tar.gz
% cd ruby-1.8.2
% touch lex.c
% ./configure
% make
% su
# make install


matz.