Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3886 > unrolled thread

Problem installing shoes3 on RHEL 6

Started byRuby Student <ruby.student@gmail.com>
First post2011-05-03 13:24 -0500
Last post2011-05-04 10:37 -0500
Articles 20 on this page of 41 — 4 participants

Back to article view | Back to comp.lang.ruby


Contents

  Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-03 13:24 -0500
    Re: Problem installing shoes3 on RHEL 6 Steve Klabnik <steve@steveklabnik.com> - 2011-05-03 13:39 -0500
      Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-03 14:06 -0500
        Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-03 15:17 -0500
          Re: Problem installing shoes3 on RHEL 6 Steve Klabnik <steve@steveklabnik.com> - 2011-05-03 17:04 -0500
            Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-04 10:24 -0500
              Re: Problem installing shoes3 on RHEL 6 Steve Klabnik <steve@steveklabnik.com> - 2011-05-04 10:28 -0500
                Re: Problem installing shoes3 on RHEL 6 Steve Klabnik <steve@steveklabnik.com> - 2011-05-04 10:40 -0500
                  Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-04 11:07 -0500
                Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-04 10:35 -0500
              Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-04 11:40 -0500
                Re: Problem installing shoes3 on RHEL 6 Steve Klabnik <steve@steveklabnik.com> - 2011-05-04 11:59 -0500
                  Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-04 13:21 -0500
                    Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-04 15:11 -0500
                      Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-04 15:16 -0500
                    Re: Problem installing shoes3 on RHEL 6 Steve Klabnik <steve@steveklabnik.com> - 2011-05-04 15:50 -0500
                      Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-04 16:19 -0500
                    Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-04 16:27 -0500
                      Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-05 06:58 -0500
                        Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-05 07:16 -0500
                          Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-05 10:45 -0500
                            Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-05 11:29 -0500
                              Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-05 11:34 -0500
                                Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-05 13:50 -0500
                                  Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-05 15:24 -0500
                                    Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-05 15:43 -0500
                                      Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-05 16:16 -0500
                                        Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-05 16:33 -0500
                                          Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-06 07:40 -0500
                                            Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-06 09:09 -0500
                                              Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-06 09:16 -0500
                                                Re: Problem installing shoes3 on RHEL 6 Steve Klabnik <steve@steveklabnik.com> - 2011-05-07 12:47 -0500
                                                  Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-12 10:24 -0500
                                        Re: Problem installing shoes3 on RHEL 6 Steve Klabnik <steve@steveklabnik.com> - 2011-05-05 21:19 -0500
                                          Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-06 06:03 -0500
                                  Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-05 15:17 -0500
              Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-04 11:18 -0500
          Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-03 17:28 -0500
            Re: Problem installing shoes3 on RHEL 6 jake kaiden <jakekaiden@yahoo.com> - 2011-05-03 19:33 -0500
              Re: Problem installing shoes3 on RHEL 6 brabuhr@gmail.com - 2011-05-03 20:26 -0500
              Re: Problem installing shoes3 on RHEL 6 Ruby Student <ruby.student@gmail.com> - 2011-05-04 10:37 -0500

Page 2 of 3 — ← Prev page 1 [2] 3  Next page →


#4001

FromRuby Student <ruby.student@gmail.com>
Date2011-05-05 10:45 -0500
Message-ID<BANLkTikUSazM8A0_yLCfcJCope5afV3jfA@mail.gmail.com>
In reply to#3984
[Note:  parts of this message were removed to make it a legal post.]

Brabuhr,

First, thank you for your extra effort on getting this build.

I moved your build to:

*/usr/local/shoes*
The permissions to the above dir are: *drwxrwxrwx  8 root root 4096 May  5
07:44 shoes*

[root@oc7871667644 shoes]#* ls -al*
total 6180
drwxrwxrwx  8 root root    4096 May  5 07:44 .
drwxr-xr-x 16 root root    4096 May  4 13:23 ..
-rw-r--r--  1 root root     762 May  4 16:52 CHANGELOG.txt
-rw-r--r--  1 root root    1401 May  4 16:52 COPYING.txt
drwxr-xr-x  2 root root    4096 May  4 16:52 fonts
drwxr-xr-x  8 root root    4096 May  4 11:05 .git
-rw-r--r--  1 root root      78 May  4 11:05 .gitignore
drwxr-xr-x  3 root root    4096 May  4 16:52 lib
-rwxr-xr-x  1 root root  342840 May  4 16:52 libcurl.so.4
-rwxr-xr-x  1 root root   39512 May  4 16:52 libgif.so.4
-rwxr-xr-x  1 root root  149808 May  4 16:52 libjpeg.so.8
-rwxr-xr-x  1 root root  178368 May  4 16:52 libportaudio.so.2
-rwxr-xr-x  1 root root 2213869 May  4 16:52 libruby.so
-rwxr-xr-x  1 root root 2213869 May  4 16:52 libruby.so.1.9
-rwxr-xr-x  1 root root  473357 May  4 16:52 libshoes.so
-rwxr-xr-x  1 root root  586064 May  4 16:52 libsqlite3.so.0
-rwxr-xr-x  1 root root   39512 May  4 16:52 libungif.so.4
-rw-r--r--  1 root root    3939 May  4 16:52 README.txt
drwxr-xr-x  4 root root    4096 May  4 16:52 ruby
-rw-r--r--  1 root root    1758 May  4 11:05 .rvmrc
drwxr-xr-x  2 root root    4096 May  4 16:52 samples
-rwxr-xr-x  1 root root     577 May  4 16:52 shoes
-rwxr-xr-x  1 root root    9418 May  4 16:52 shoes-bin
drwxr-xr-x  3 root root    4096 May  4 16:52 static
-rw-r--r--  1 root root      51 May  4 16:52 VERSION.txt

I also put it on the PATH:

[root@oc7871667644 shoes]# *echo $PATH*
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/ibm/c4eb/bin:/usr/local/rvm/bin:/usr/kerberos/bin:/root/bin:/usr/local/shoes:/usr/local/shoes/bin

I tried: *shoes* on the command prompt and got:

[root@oc7871667644 ~]# *shoes*
shoes: error while loading shared libraries: libruby.so.1.9: cannot open
shared object file: No such file or directory

Am I missing something? One thing to notice, I used *shoes* shortly under
Windows. I just migrated from Windows to RHEL6.

Hey, I am sorry to take so much of your time. I do appreciate your help.

Thank you


On Thu, May 5, 2011 at 8:16 AM, <brabuhr@gmail.com> wrote:

> > I downloaded your build.
> > I assume this is a shoes build ready to be used, correct?
>
> I think so.  I copied it over to a different SL6 machine than I did
> the build on and it seemed to work properly there.  (It didn't work on
> a Slackware machine (missing kerberos libraries).)
>
> > I was thinking if I should un-tar it @*/usr/local/shoes*. What do you
> think?
>
> I think that should be fine.
>
> > Thank you for your time and help! It is truly appreciated!
>
> You're welcome.  It was fun :-)
>
>


-- 
Ruby Student

[toc] | [prev] | [next] | [standalone]


#4002

Frombrabuhr@gmail.com
Date2011-05-05 11:29 -0500
Message-ID<BANLkTin3rB5tjwYohkrYrTn-BE6zOsvdHw@mail.gmail.com>
In reply to#4001
On Thu, May 5, 2011 at 11:45 AM, Ruby Student <ruby.student@gmail.com> wrote:
> [root@oc7871667644 ~]# *shoes*
> shoes: error while loading shared libraries: libruby.so.1.9: cannot open
> shared object file: No such file or directory

What happens if you cd to the extracted shoes directory and invoke it like:

$ cd /usr/local/shoes
$ ./shoes

Also try:

$ LD_LIBRARY_PATH=/usr/local/shoes shoes

Thanks

[toc] | [prev] | [next] | [standalone]


#4003

Frombrabuhr@gmail.com
Date2011-05-05 11:34 -0500
Message-ID<BANLkTinS9+5CQZdpXquGhs=T1em-NFFegg@mail.gmail.com>
In reply to#4002
> Also try:
>
> $ LD_LIBRARY_PATH=/usr/local/shoes shoes

I see the shoes shell script does set LD_LIBRARY_PATH:
    REALPATH=`readlink -f $0`

    APPPATH="${REALPATH%/*}"
    if [ "$APPPATH" = "shoes" ]; then
      APPPATH="."
    fi
    if [ "$APPPATH" = "." ]; then
      APPPATH=`pwd`
    fi

    ...

    LD_LIBRARY_PATH=$APPPATH $APPPATH/shoes-bin "$@"

Also try to run it like:

$ bash -x /usr/local/shoes/shoes

and/or

$ cd /usr/local/shoes
$ bash -x ./shoes

Thanks

[toc] | [prev] | [next] | [standalone]


#4005

FromRuby Student <ruby.student@gmail.com>
Date2011-05-05 13:50 -0500
Message-ID<BANLkTinxPuBxdYPjhH8mfWWNvF4wrFNEHA@mail.gmail.com>
In reply to#4003
[Note:  parts of this message were removed to make it a legal post.]

Here is what I get:

*/usr/local/shoes]$ ./shoes*
uninitialized constant Encoding::UTF_7

*/usr/local/shoes]$ ./shoes-bin*
uninitialized constant Encoding::UTF_7


*/usr/local/shoes]$ bash -x ./shoes*
++ readlink -f ./shoes
+ REALPATH=/usr/local/shoes/shoes
+ APPPATH=/usr/local/shoes
+ '[' /usr/local/shoes = shoes ']'
+ '[' /usr/local/shoes = . ']'
++ pwd
++ awk '{ sub(/[0-9]+/, ""); print }'
+ '[' /usr/local/shoes = /tmp/selfgz ']'
+ cd ''
+ LD_LIBRARY_PATH=/usr/local/shoes
+ /usr/local/shoes/shoes-bin
uninitialized constant Encoding::UTF_7


On Thu, May 5, 2011 at 12:34 PM, <brabuhr@gmail.com> wrote:

> > Also try:
> >
> > $ LD_LIBRARY_PATH=/usr/local/shoes shoes
>
> I see the shoes shell script does set LD_LIBRARY_PATH:
>    REALPATH=`readlink -f $0`
>
>    APPPATH="${REALPATH%/*}"
>    if [ "$APPPATH" = "shoes" ]; then
>      APPPATH="."
>    fi
>    if [ "$APPPATH" = "." ]; then
>      APPPATH=`pwd`
>    fi
>
>    ...
>
>    LD_LIBRARY_PATH=$APPPATH $APPPATH/shoes-bin "$@"
>
> Also try to run it like:
>
> $ bash -x /usr/local/shoes/shoes
>
> and/or
>
> $ cd /usr/local/shoes
> $ bash -x ./shoes
>
> Thanks
>
>


-- 
Ruby Student

[toc] | [prev] | [next] | [standalone]


#4009

Frombrabuhr@gmail.com
Date2011-05-05 15:24 -0500
Message-ID<BANLkTimVBry1gntxrsUTx-cwPGyV8z95+A@mail.gmail.com>
In reply to#4005
> On Thu, May 5, 2011 at 2:50 PM, Ruby Student <ruby.student@gmail.com> wrote:
>> Here is what I get:
>>
>> */usr/local/shoes]$ ./shoes*
>> uninitialized constant Encoding::UTF_7

What do you get from:

$ iconv -l | fgrep UTF
ISO-10646/UTF-8/
ISO-10646/UTF8/
UTF-7//
UTF-8//
UTF-16//
UTF-16BE//
UTF-16LE//
UTF-32//
UTF-32BE//
UTF-32LE//
UTF7//
UTF8//
UTF16//
UTF16BE//
UTF16LE//
UTF32//
UTF32BE//
UTF32LE//

[toc] | [prev] | [next] | [standalone]


#4011

FromRuby Student <ruby.student@gmail.com>
Date2011-05-05 15:43 -0500
Message-ID<BANLkTik9EMrqUHFdvft8cRJayvFFd407ug@mail.gmail.com>
In reply to#4009
[Note:  parts of this message were removed to make it a legal post.]

This is the output to the *iconv* command:

Desktop]$* iconv -l | fgrep UTF*
ISO-10646/UTF-8/
ISO-10646/UTF8/
UTF-7//
UTF-8//
UTF-16//
UTF-16BE//
UTF-16LE//
UTF-32//
UTF-32BE//
UTF-32LE//
UTF7//
UTF8//
UTF16//
UTF16BE//
UTF16LE//
UTF32//
UTF32BE//
UTF32LE//


On Thu, May 5, 2011 at 4:24 PM, <brabuhr@gmail.com> wrote:

> > On Thu, May 5, 2011 at 2:50 PM, Ruby Student <ruby.student@gmail.com>
> wrote:
> >> Here is what I get:
> >>
> >> */usr/local/shoes]$ ./shoes*
> >> uninitialized constant Encoding::UTF_7
>
> What do you get from:
>
> $ iconv -l | fgrep UTF
> ISO-10646/UTF-8/
> ISO-10646/UTF8/
> UTF-7//
> UTF-8//
> UTF-16//
> UTF-16BE//
> UTF-16LE//
> UTF-32//
> UTF-32BE//
> UTF-32LE//
> UTF7//
> UTF8//
> UTF16//
> UTF16BE//
> UTF16LE//
> UTF32//
> UTF32BE//
> UTF32LE//
>
>


-- 
Ruby Student

[toc] | [prev] | [next] | [standalone]


#4014

Frombrabuhr@gmail.com
Date2011-05-05 16:16 -0500
Message-ID<BANLkTim4360H05fs1S7ji6d0A_L7FynFeg@mail.gmail.com>
In reply to#4011
> */usr/local/shoes]$ ./shoes*
> uninitialized constant Encoding::UTF_7

It's interesting that the only results on Google for "uninitialized
constant Encoding::UTF_7" all relate to Hackety Hack.

[toc] | [prev] | [next] | [standalone]


#4015

Frombrabuhr@gmail.com
Date2011-05-05 16:33 -0500
Message-ID<BANLkTi=2P6YOHpkyuQWyC6fi=C2JH+kivQ@mail.gmail.com>
In reply to#4014
On Thu, May 5, 2011 at 5:16 PM,  <brabuhr@gmail.com> wrote:
>> */usr/local/shoes]$ ./shoes*
>> uninitialized constant Encoding::UTF_7
>
> It's interesting that the only results on Google for "uninitialized
> constant Encoding::UTF_7" all relate to Hackety Hack.

I was hesitant to suggest it, but try editing 'ruby/lib/uri/common.rb'
(I guess it would be /usr/local/shoes/ruby/lib/uri/common.rb for you)
to remove the reference to UTF_7:

$ diff -u ruby/lib/uri/common.rb.orig ruby/lib/uri/common.rb
--- ruby/lib/uri/common.rb.orig 2011-05-05 16:15:13.103236933 -0400
+++ ruby/lib/uri/common.rb      2011-05-05 16:15:31.462344142 -0400
@@ -718,8 +718,7 @@

   TBLENCWWWCOMP_ = {} # :nodoc:
   TBLDECWWWCOMP_ = {} # :nodoc:
-  HTML5ASCIIINCOMPAT = [Encoding::UTF_7, Encoding::UTF_16BE,
Encoding::UTF_16LE,
-    Encoding::UTF_32BE, Encoding::UTF_32LE] # :nodoc:
+  HTML5ASCIIINCOMPAT = []

   # Encode given +str+ to URL-encoded form data.
   #

And see what you get then.

[toc] | [prev] | [next] | [standalone]


#4037

FromRuby Student <ruby.student@gmail.com>
Date2011-05-06 07:40 -0500
Message-ID<BANLkTik5mnpTA3TioOkphuLxhA73d4TJ7Q@mail.gmail.com>
In reply to#4015
[Note:  parts of this message were removed to make it a legal post.]

OK,

In:
*pwd
/usr/local/shoes/ruby/lib/uri*

I first saved *common.rb *to *common.rb.05062011*.

The only reference to *UTF_7* is this: *HTML5ASCIIINCOMPAT =
[Encoding::UTF_7, Encoding::UTF_16BE, Encoding::UTF_16LE,*

I changed it to this:

H*TML5ASCIIINCOMPAT = [Encoding::Encoding::UTF_16BE, Encoding::UTF_16LE,*

...and saved *common.rb*

I then proceeded to find the difference between the original which I saved
as: *common.rb.05062011 *and the changed version: *common.rb.*

*diff -u common.rb common.rb.05062011*
--- common.rb    2011-05-06 08:24:30.934834089 -0400
+++ common.rb.05062011    2011-05-04 16:52:24.000000000 -0400
@@ -718,7 +718,7 @@

   TBLENCWWWCOMP_ = {} # :nodoc:
   TBLDECWWWCOMP_ = {} # :nodoc:
-  HTML5ASCIIINCOMPAT = [Encoding::UTF_16BE, Encoding::UTF_16LE,
+  HTML5ASCIIINCOMPAT = [Encoding::UTF_7, Encoding::UTF_16BE,
Encoding::UTF_16LE,
     Encoding::UTF_32BE, Encoding::UTF_32LE] # :nodoc:

   # Encode given +str+ to URL-encoded form data.

I then proceeded to attempt a shoes execution:

*[root@oc7871667644 shoes]# bash -x ./shoes*
++ readlink -f ./shoes
+ REALPATH=/usr/local/shoes/shoes
+ APPPATH=/usr/local/shoes
+ '[' /usr/local/shoes = shoes ']'
+ '[' /usr/local/shoes = . ']'
++ awk '{ sub(/[0-9]+/, ""); print }'
++ pwd
+ '[' /usr/local/shoes = /tmp/selfgz ']'
+ cd ''
+ LD_LIBRARY_PATH=/usr/local/shoes
+ /usr/local/shoes/shoes-bin
uninitialized constant Encoding::UTF_16BE

I executed shoes again and now got:
*[root@oc7871667644 shoes]# ./shoes*
uninitialized constant Encoding::UTF_16LE

So, I decided to remove the entire record.
I proceeded to execute shoes and *BINGO! It Worked*! I got that beautiful
screen that was looking for, the "Welcome to SHOES" screen.

NOW, my dilemma is how important is that record that I commented out????
This is the record:
*HTML5ASCIIINCOMPAT = [Encoding::UTF_7, Encoding::UTF_16BE,
Encoding::UTF_16LE, Encoding::UTF_32BE, Encoding::UTF_32LE] # :nodoc:*

I have no clue is to the importance of this record.

What do you guys think?
Is it safe to write code without that record?

Thank you for your help.

On Thu, May 5, 2011 at 5:33 PM, <brabuhr@gmail.com> wrote:

> On Thu, May 5, 2011 at 5:16 PM,  <brabuhr@gmail.com> wrote:
> >> */usr/local/shoes]$ ./shoes*
> >> uninitialized constant Encoding::UTF_7
> >
> > It's interesting that the only results on Google for "uninitialized
> > constant Encoding::UTF_7" all relate to Hackety Hack.
>
> I was hesitant to suggest it, but try editing 'ruby/lib/uri/common.rb'
> (I guess it would be /usr/local/shoes/ruby/lib/uri/common.rb for you)
> to remove the reference to UTF_7:
>
> $ diff -u ruby/lib/uri/common.rb.orig ruby/lib/uri/common.rb
> --- ruby/lib/uri/common.rb.orig 2011-05-05 16:15:13.103236933 -0400
> +++ ruby/lib/uri/common.rb      2011-05-05 16:15:31.462344142 -0400
> @@ -718,8 +718,7 @@
>
>   TBLENCWWWCOMP_ = {} # :nodoc:
>   TBLDECWWWCOMP_ = {} # :nodoc:
> -  HTML5ASCIIINCOMPAT = [Encoding::UTF_7, Encoding::UTF_16BE,
> Encoding::UTF_16LE,
> -    Encoding::UTF_32BE, Encoding::UTF_32LE] # :nodoc:
> +  HTML5ASCIIINCOMPAT = []
>
>   # Encode given +str+ to URL-encoded form data.
>   #
>
> And see what you get then.
>
>


-- 
Ruby Student

[toc] | [prev] | [next] | [standalone]


#4040

Frombrabuhr@gmail.com
Date2011-05-06 09:09 -0500
Message-ID<BANLkTingnaBLtxB+QfEobjBVTnkc+UrbjA@mail.gmail.com>
In reply to#4037
On Fri, May 6, 2011 at 8:40 AM, Ruby Student <ruby.student@gmail.com> wrote:
>It Worked*! I got that beautiful screen that was looking for, the
> "Welcome to SHOES" screen.

Awesome!

> NOW, my dilemma is how important is that record that I commented out????
> This is the record:
> *HTML5ASCIIINCOMPAT = [Encoding::UTF_7, Encoding::UTF_16BE,
> Encoding::UTF_16LE, Encoding::UTF_32BE, Encoding::UTF_32LE] # :nodoc:*
>
> I have no clue is to the importance of this record.
>
> What do you guys think?
> Is it safe to write code without that record?

HTML5ASCIIINCOMPAT is only used in encode_www_form_component which
only seems to be called from encode_www_form which doesn't seem to be
called from anywhere in the shoes code.  Maybe some shoes applications
may make use of it, but even then I imagine it should be safe unless
the system happens to be using one of those encodings.

[toc] | [prev] | [next] | [standalone]


#4041

FromRuby Student <ruby.student@gmail.com>
Date2011-05-06 09:16 -0500
Message-ID<BANLkTimhMzS-xAmBh_dqdGntpRRdbx=dUw@mail.gmail.com>
In reply to#4040
[Note:  parts of this message were removed to make it a legal post.]

Well then, I am good to go.
Now my challenge is to continue learning Shoes.

I just want to thank you and Steve for your help. I truly appreciate it.

Thanks again

On Fri, May 6, 2011 at 10:09 AM, <brabuhr@gmail.com> wrote:

> On Fri, May 6, 2011 at 8:40 AM, Ruby Student <ruby.student@gmail.com>
> wrote:
> >It Worked*! I got that beautiful screen that was looking for, the
> > "Welcome to SHOES" screen.
>
> Awesome!
>
> > NOW, my dilemma is how important is that record that I commented out????
> > This is the record:
> > *HTML5ASCIIINCOMPAT = [Encoding::UTF_7, Encoding::UTF_16BE,
> > Encoding::UTF_16LE, Encoding::UTF_32BE, Encoding::UTF_32LE] # :nodoc:*
> >
> > I have no clue is to the importance of this record.
> >
> > What do you guys think?
> > Is it safe to write code without that record?
>
> HTML5ASCIIINCOMPAT is only used in encode_www_form_component which
> only seems to be called from encode_www_form which doesn't seem to be
> called from anywhere in the shoes code.  Maybe some shoes applications
> may make use of it, but even then I imagine it should be safe unless
> the system happens to be using one of those encodings.
>
>


-- 
Ruby Student

[toc] | [prev] | [next] | [standalone]


#4070

FromSteve Klabnik <steve@steveklabnik.com>
Date2011-05-07 12:47 -0500
Message-ID<BANLkTimAbL5rLAcMrp+J9f1whVfmvhVcMA@mail.gmail.com>
In reply to#4041
[Note:  parts of this message were removed to make it a legal post.]

Any time! Please keep me up to date with your thoughts about Shoes, I'm
working on getting a 3.1 release out there...

[toc] | [prev] | [next] | [standalone]


#4378

FromRuby Student <ruby.student@gmail.com>
Date2011-05-12 10:24 -0500
Message-ID<BANLkTi=ccp-4G8KCS9MyoszZJm+8FE5sSw@mail.gmail.com>
In reply to#4070
[Note:  parts of this message were removed to make it a legal post.]

Will do. Thanks a bunch!

On Sat, May 7, 2011 at 1:47 PM, Steve Klabnik <steve@steveklabnik.com>wrote:

> Any time! Please keep me up to date with your thoughts about Shoes, I'm
> working on getting a 3.1 release out there...
>



-- 
Ruby Student

[toc] | [prev] | [next] | [standalone]


#4020

FromSteve Klabnik <steve@steveklabnik.com>
Date2011-05-05 21:19 -0500
Message-ID<BANLkTik-0gU5kL7BCzdav8zpjsQ6FhyWnQ@mail.gmail.com>
In reply to#4014
[Note:  parts of this message were removed to make it a legal post.]

>
> It's interesting that the only results on Google for "uninitialized
> constant Encoding::UTF_7" all relate to Hackety Hack.
>

Not that interesting: Hackety Hack is Shoes, after all...

I don't have any good ideas about this error, though.

[toc] | [prev] | [next] | [standalone]


#4030

Frombrabuhr@gmail.com
Date2011-05-06 06:03 -0500
Message-ID<BANLkTin3GKQ=b1PFRG06CtR8Aes18RKqJQ@mail.gmail.com>
In reply to#4020
>> It's interesting that the only results on Google for "uninitialized
>> constant Encoding::UTF_7" all relate to Hackety Hack.
>>
>
> Not that interesting: Hackety Hack is Shoes, after all...

That's why I found it interesting :-)

[toc] | [prev] | [next] | [standalone]


#4012

Frombrabuhr@gmail.com
Date2011-05-05 15:17 -0500
Message-ID<BANLkTi=UpF1Jq1fSuuBCT38uH8CscNattA@mail.gmail.com>
In reply to#4005
On Thu, May 5, 2011 at 2:50 PM, Ruby Student <ruby.student@gmail.com> wrote:
> Here is what I get:
>
> */usr/local/shoes]$ ./shoes*
> uninitialized constant Encoding::UTF_7
>
> */usr/local/shoes]$ bash -x ./shoes*
> ++ readlink -f ./shoes
> + REALPATH=/usr/local/shoes/shoes
> + APPPATH=/usr/local/shoes
> + '[' /usr/local/shoes = shoes ']'
> + '[' /usr/local/shoes = . ']'
> ++ pwd
> ++ awk '{ sub(/[0-9]+/, ""); print }'
> + '[' /usr/local/shoes = /tmp/selfgz ']'
> + cd ''
> + LD_LIBRARY_PATH=/usr/local/shoes
> + /usr/local/shoes/shoes-bin
> uninitialized constant Encoding::UTF_7

Hmm... so if I follow you, when you cd first you do not get the
libruby error, but now you get a new encoding error?

The only reference I see to that constant is:
/ruby/lib/uri/common.rb:  HTML5ASCIIINCOMPAT = [Encoding::UTF_7,
Encoding::UTF_16BE, Encoding::UTF_16LE,

I'm not sure why that would not be initialized...

[toc] | [prev] | [next] | [standalone]


#3936

Frombrabuhr@gmail.com
Date2011-05-04 11:18 -0500
Message-ID<BANLkTimpqDNuHJM+ag=BKawNW2i_Brg5iw@mail.gmail.com>
In reply to#3933
On Wed, May 4, 2011 at 3:24 PM, Ruby Student <ruby.student@gmail.com> wrote:
> *rake aborted!
> no such file to load -- openssl*
>
> I also checked the *openssl* that came with RHEL 6:
> [root@oc7871667644 openssl]#* rpm -qa | grep -i openssl*
> openssl-1.0.0-4.el6_0.2.x86_64
> openssl098e-0.9.8e-17.el6.x86_64
> openssl-1.0.0-4.el6_0.2.i686
>
> Basically, I am totally lost.

rpm -qa | fgrep openssl
  openssl-1.0.0-4.el6_0.2.x86_64
  openssl-devel-1.0.0-4.el6_0.2.x86_64

rvm 1.9.2
ruby -v
  ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
irb
  > require 'openssl'
  => true

directions:
rvm remove 1.9.2
sudo yum install openssl-devel
rvm install 1.9.2

[toc] | [prev] | [next] | [standalone]


#3891

Frombrabuhr@gmail.com
Date2011-05-03 17:28 -0500
Message-ID<BANLkTikAOX2awp5W58pU=039YYLxzDA2ig@mail.gmail.com>
In reply to#3889
uname -a
    Linux 2.6.32-71.24.1.el6.x86_64 #1 SMP Fri Apr 8 01:07:23 CDT 2011
x86_64 x86_64 x86_64 GNU/Linux
cat /etc/redhat-release
    Scientific Linux release 6.0 (Carbon)
ruby -v
    ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]

cd /tmp
git clone https://github.com/shoes/shoes.git
cd shoes
rake
    rake aborted!
    no such file to load -- bundler
sudo gem install bundler
rake
    No package 'cairo' found
    No package 'pango' found
    No package 'gtk+-2.0' found
sudo yum install cairo-devel pango-devel gtk2-devel
rake
    command not found: curl-config
    no such file to load -- mechanize
sudo yum install curl-devel
sudo gem install mechanize
rake
    ERROR: Failed to build gem native extension.
sudo yum install ruby-devel
sudo gem install mechanize
    libxml2 is missing.
sudo yum install libxml-devel libxslt-devel
sudo gem install mechanize
rake
    error: gif_lib.h: No such file or directory
sudo yum install giflib-devel
rake
    error: portaudio.h: No such file or directory
sudo yum install portaudio-devel
rake
    checking for sqlite3.h... no
sudo yum install sqlite-devel
rake
    No such file or directory - /usr/lib/libruby.so
sed -i 's;/lib/;/lib64/;g' make/linux/tasks.rb
rake
cd dist
/shoes
    no such file to load -- stringio
cp /usr/lib64/ruby/1.8/stringio.so ruby/lib/
/shoes
    no such file to load -- rbconfig
cp /usr/lib64/ruby/1.8/rbconfig.rb ruby/lib/
/shoes
    no such file to load -- digest/sha1
cp -r /usr/lib64/ruby/1.8/* ruby/lib/
/shoes
    "Welcome to SHOES"

[toc] | [prev] | [next] | [standalone]


#3897

Fromjake kaiden <jakekaiden@yahoo.com>
Date2011-05-03 19:33 -0500
Message-ID<78297d91831d885546708d10e28792f3@ruby-forum.com>
In reply to#3891
unknown wrote in post #996479:

> ruby -v
>     ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]


  i think this may be you're problem - i was having a similar issue, and 
realized that i was trying to install shoes under 1.8.7 - which won't 
work.

  if you have rvm just use a 1.9.1x version, and if necessary install 
the mechanize gem, and everything should work out alright.


  - j

-- 
Posted via http://www.ruby-forum.com/.

[toc] | [prev] | [next] | [standalone]


#3902

Frombrabuhr@gmail.com
Date2011-05-03 20:26 -0500
Message-ID<BANLkTi=scr6keasuHRUWEdixtbA6_NA40w@mail.gmail.com>
In reply to#3897
On Tue, May 3, 2011 at 8:33 PM, jake kaiden <jakekaiden@yahoo.com> wrote:
> unknown wrote in post #996479:
>
>> ruby -v
>>     ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
>
>
>  i think this may be you're problem - i was having a similar issue, and
> realized that i was trying to install shoes under 1.8.7 - which won't
> work.

Really?  It built and ran:
    ./shoes
      "Welcome to SHOES"

(I only tested one sample; I would believe that not everything would
work properly.)

>  if you have rvm just use a 1.9.1x version, and if necessary install
> the mechanize gem, and everything should work out alright.

For the OP, yes I imagine that installing mechanize in 1.9 should get
past that hurdle.  (As you can see from my transcript, I ran into
further troubles with lib64 vs lib etc.)

[toc] | [prev] | [next] | [standalone]


Page 2 of 3 — ← Prev page 1 [2] 3  Next page →

Back to top | Article view | comp.lang.ruby


csiph-web