f



ruby version 1.9.2 dev with memcached-0.1.18 native compilation error/syntax errors #2

Hi there

Hopefully these errors somehow relate to REE, if not, highly
appreciate any feedback and a direction!

Installed latest (from git master) enterprise server and attempting to
build memcached-0.18.0 with ruby compiler version 1.9.2 dev  ,
encountered 2 exceptions (one during native compilation of memcached
gem and second during ruby compilation of memcached rails.rb (syntax
error on the usage of alias)

Symptom 1: errors during gem execution of memcache gem

Symptom 2: errors during ruby compilation of memcached .rb file

Using environment:

A) Ruby Server deployment

using ruby enterprise server compiled from sources (git repo:
git://github.com/FooBarWidget/rubyenterpriseedition187.git) with
tmalloc: libtcmalloc_minimal.a compiled from sources:
http://google-perftools.googlecode.com/svn/trunk (google-perftools:
version 1.5 release)

B) OS, Ruby, Gem versions

bash-3.2$ sw_vers;ruby -v; gem -v
ProductName:    Mac OS X
ProductVersion: 10.6.2
BuildVersion:   10C540
ruby 1.9.2dev (2010-02-21 trunk 26721) [x86_64-darwin10.2.0]
1.3.5
bash-3.2$

C) Ruby local env

bash-3.2$ gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
fastthread (1.0.7)
minitest (1.5.0)
passenger (2.2.10, 2.2.9)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rdoc (2.2.2)
bash-3.2$

bash-3.2$ which ruby
/opt/local/src/rubyenterpriseserver/current/bin/ruby
bash-3.2$ which gem
/opt/local/src/rubyenterpriseserver/current/bin/gem
bash-3.2$




----------------------------------------------

Steps to reproduce symptom 1:

1. command and stack trace (truncated warning errors showing partial
error stack exception)

bash-3.2$ gem install memcached
Building native extensions.  This could take a while...
/opt/local/src/rubyenterpriseserver/trunk/build/lib/ruby/1.9.1/
rubygems/ext/builder.rb:46: warning: Insecure world writable dir /opt/
local/src/mysql/current in PATH, mode 040777
ERROR:  Error installing memcached:
       ERROR: Failed to build gem native extension.

/opt/local/src/rubyenterpriseserver/trunk/build/bin/ruby extconf.rb
extconf.rb:55: warning: Insecure world writable dir /opt/local/src/
mysql/current in PATH, mode 040777
Libmemcached already built; run 'rake clean' first if you need to
rebuild.
creating Makefile

make
gcc -I. -I/opt/local/src/rubyenterpriseserver/trunk/build/include/
ruby-1.9.1/x86_64-darwin10.2.0 -I/opt/local/src/rubyenterpriseserver/
trunk/build/include/ruby-1.9.1/ruby/backward -I/opt/local/src/
rubyenterpriseserver/trunk/build/include/ruby-1.9.1 -I.  -fno-common  -
I/opt/local/src/rubyenterpriseserver/trunk/build/gems/memcached-0.18.0/
ext/include  -L/opt/local/src/rubyenterpriseserver/trunk/build/gems/
memcached-0.18.0/ext/lib -g -O2 -pipe -g -O2 -pipe  -o
rlibmemcached_wrap.o -c rlibmemcached_wrap.c
rlibmemcached_wrap.c: In function
=91_wrap_MemcachedAnalysisSt_average_item_size_set=92:
rlibmemcached_wrap.c:2319: warning: format not a string literal and no
format arguments
rlibmemcached_wrap.c:2325: warning: format not a string literal and no
format arguments
rlibmemcached_wrap.c:2328: warning: format not a string literal and no
format arguments

...
...

gcc -dynamic -bundle -o rlibmemcached.bundle rlibmemcached_wrap.o -L/
opt/local/src/rubyenterpriseserver/trunk/build/gems/memcached-0.18.0/
ext/lib -L/opt/local/src/rubyenterpriseserver/trunk/build/gems/
memcached-0.18.0/ext/lib -L. -L/opt/local/src/google-perftools/current/
lib -L. -L/opt/local/src/google-perftools/current/lib   -lpthread -ldl
-lobjc  -lmemcached_gem
Undefined symbols:
 "_rb_gv_get", referenced from:
     _Init_rlibmemcached in rlibmemcached_wrap.o
     _Init_rlibmemcached in rlibmemcached_wrap.o
     _Init_rlibmemcached in rlibmemcached_wrap.o
 "_rb_str_new_cstr", referenced from:
     _SWIG_Ruby_NewClassInstance in rlibmemcached_wrap.o
     _SWIG_Ruby_NewPointerObj in rlibmemcached_wrap.o
     _Ruby_Format_TypeError in rlibmemcached_wrap.o
     _memcached_stat_get_rvalue in rlibmemcached_wrap.o
     __wrap_memcached_stat_get_keys in rlibmemcached_wrap.o
 "_rb_iv_get", referenced from:
     _SWIG_Ruby_NewPointerObj in rlibmemcached_wrap.o
     _SWIG_Ruby_ConvertPtrAndOwn in rlibmemcached_wrap.o
 "_rb_num2long", referenced from:
     _SWIG_Ruby_NewPointerObj in rlibmemcached_wrap.o
     _SWIG_AUX_NUM2LONG in rlibmemcached_wrap.o
     __wrap_MemcachedServerSt_next_retry_set in rlibmemcached_wrap.o
     __wrap_MemcachedResultSt_expiration_set in rlibmemcached_wrap.o
     __wrap_MemcachedSt_next_distribution_rebuild_set in
rlibmemcached_wrap.o
     __wrap_memcached_flush in rlibmemcached_wrap.o
     __wrap_memcached_decrement_with_initial in rlibmemcached_wrap.o
     __wrap_memcached_increment_with_initial in rlibmemcached_wrap.o
     __wrap_memcached_delete in rlibmemcached_wrap.o
     __wrap_memcached_cas_by_key in rlibmemcached_wrap.o
     __wrap_memcached_append_by_key in rlibmemcached_wrap.o
     __wrap_memcached_prepend_by_key in rlibmemcached_wrap.o
     __wrap_memcached_replace_by_key in rlibmemcached_wrap.o
     __wrap_memcached_add_by_key in rlibmemcached_wrap.o
     __wrap_memcached_set_by_key in rlibmemcached_wrap.o
     __wrap_memcached_cas in rlibmemcached_wrap.o
     __wrap_memcached_prepend in rlibmemcached_wrap.o
     __wrap_memcached_append in rlibmemcached_wrap.o
     __wrap_memcached_replace in rlibmemcached_wrap.o
     __wrap_memcached_add in rlibmemcached_wrap.o
     __wrap_memcached_set in rlibmemcached_wrap.o
     __wrap_memcached_delete_by_key in rlibmemcached_wrap.o
 "_rb_raise", referenced from:
     __wrap_new_MemcachedServerSt in rlibmemcached_wrap.o
     __wrap_new_MemcachedResultSt in rlibmemcached_wrap.o
     __wrap_new_MemcachedSt in rlibmemcached_wrap.o
     __wrap_new_MemcachedStatSt in rlibmemcached_wrap.o
     __wrap_new_MemcachedAnalysisSt in rlibmemcached_wrap.o
     __wrap_memcached_generate_hash_rvalue in rlibmemcached_wrap.o
     __wrap_memcached_generate_hash_rvalue in rlibmemcached_wrap.o
     __wrap_memcached_generate_hash_value in rlibmemcached_wrap.o
     __wrap_memcached_generate_hash_value in rlibmemcached_wrap.o
     __wrap_memcached_select_stat_at in rlibmemcached_wrap.o
     __wrap_memcached_select_stat_at in rlibmemcached_wrap.o
     __wrap_memcached_select_server_at in rlibmemcached_wrap.o
     __wrap_memcached_select_server_at in rlibmemcached_wrap.o
     __wrap_memcached_server_clone in rlibmemcached_wrap.o
     __wrap_memcached_server_clone in rlibmemcached_wrap.o
     __wrap_memcached_server_free in rlibmemcached_wrap.o
     __wrap_memcached_server_free in rlibmemcached_wrap.o
     __wrap_memcached_server_create in rlibmemcached_wrap.o

... exception trace truncated

2. Step to reproduce symptom 2

error while compiling ruby class using memcached gem library (uses
memcached-gem project from : git://github.com/fauna/memcached.git

syntax errors on rails.rb

had to replace lines with following resulting in clean compilation
(did anything change in ruby 1.9.2 regarding alias syntax?)


Description     Resource        Path    Location        Type
syntax error, unexpected tSTRING_CONTENT        rails.rb
/memcached-gem/lib/
memcached       line 110        DLTK Problem

line 110:  alias :"[]" :get

replaced with


#    alias :"[]" :get
#    alias :"[]=3D" :set

   alias :[] :get
   alias :[]=3D :set

0
2/23/2010 1:12:17 AM
comp.lang.ruby 48886 articles. 0 followers. Post Follow

0 Replies
639 Views

Similar Articles

[PageSpeed] 59

Reply:

Similar Artilces:

Ruby 1.9.2 package has library version 1.9.1?
Hi! I downloaded Ruby-1.9.2-0p136 and run configure. It finishes with: ext/include/x86_64-linux/ruby/config.h updated ruby library version = 1.9.1 configure: creating ./config.status config.status: creating Makefile So Ruby has a library, which has a different version than the ruby interpreter? thanks in advance ralf Hi Ralf, Did you figure out the version mismatch problem? I have the same issue with 1.9.2p180 on OS X 10.6.6....need to sort this out asap. -- Posted via http://www.ruby-forum.com/. ...

Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms, Reports) on Fedora Core 1
I have installed Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms6i, Reports6i) on Fedora Core 1 the 8th November 2003. All is running OK. Denis ALEXANDRE Assistant Manager, Banque Saradar France http://www.alexnet.fr/ P.S. I am using Oracle and Unix to create an Integrated Banking System since 1987. This banking system is installed in more than 25 other banks. alex@alexnet.fr wrote: > I have installed > Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms6i, Reports6i) > on Fedora Core 1 > the 8th November 2003. All is running OK. > > Denis ALEXANDRE > Assistant Manager, Banque Saradar France > http://www.alexnet.fr/ > > P.S. I am using Oracle and Unix to create an Integrated Banking System since 1987. > This banking system is installed in more than 25 other banks. > > Great - after this coming out in the open, do you care to explain how you installed Portal Rel 1 in a 9.2 instance? -- Regards, Frank van Bortel Frank wrote: > alex@alexnet.fr wrote: > >> I have installed >> Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms6i, >> Reports6i) >> on Fedora Core 1 >> the 8th November 2003. All is running OK. >> >> Denis ALEXANDRE >> Assistant Manager, Banque Saradar France >> http://www.alexnet.fr/ >> >> P.S. I am using Oracle and Unix to create an Integrated Banking System >> since 1987. >...

[ANN] Ruby 1.9.1-p243 and Ruby 1.9.2-preview1 Released
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, RubyKaigi2009 is being held since yesterday. It is the best time to release new tarball of Ruby 1.9. Ruby 1.9.1-p243 and Ruby 1.9.2-preview1 have just been released. == Ruby 1.9.1-p243 This is a patch level release in the 1.9.1 series. It includes bug fixes. see the ChangeLog for more detail * http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1/ChangeLog == Ruby 1.9.2-preview1 This is a preview for the 1.9.2 series. It is just a snapshot. It still have some known bugs, is sometimes unstable. Let us know your view on it. * Socket API was more objectified. * Time was reimplemented and enhanced. Now Time has no max/min value, no year 2038 problem. * New Random class for random number sequence. * Good news for merb users: Method#parameters see the NEWS and the ChangeLog for more detail. * http://svn.ruby-lang.org/repos/ruby/trunk/NEWS * http://svn.ruby-lang.org/repos/ruby/trunk/ChangeLog == Location Ruby 1.9.1-p243 * ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.bz2 SIZE: 7191348 bytes MD5: 66d4f8403d13623051091347764881a0 SHA256: 39c9850841c0dd5d368f96b854f97c19b21eb28a02200f8b4e151f608092e687 * ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz SIZE: 9043825 bytes MD5: 515bfd965814e718c0943abf3dde5494 SHA256: 31598e37b3962643bec722921644957be6f8fb9a26f6c91fa627bd668ea68be4 * ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.zip SIZE: 10307868 bytes MD5: 708667...

Mysql-ruby 2.7.2 not compile with ruby 1.9
Hello, Following changes in the RSTRING structure of ruby 1.9 (CVS), the mysql-ruby 2.7.2 library doesn't compile anymore. Is there a newer version of mysql-ruby? Or else it will make a nice week end project for me :-) Francois On 12/10/06, fg <fg@siamecommerce.com> wrote: > Hello, > > Following changes in the RSTRING structure of ruby 1.9 (CVS), the > mysql-ruby 2.7.2 library doesn't compile anymore. Is there a newer > version of mysql-ruby? Or else it will make a nice week end project for > me :-) I doubt one already exists. FYI, 1.9 has undergone quite ...

Linux: Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms, Reports) on Fedora Core 1
I have installed with Philippe ALEXANDRE on a laptop Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms6i, Reports6i) on Fedora Core 1 the 8th November 2003. All is running OK. Denis ALEXANDRE Assistant Manager, Banque Saradar France http://www.alexnet.fr/ P.S. I am using Oracle and Unix to create an Integrated Banking System since 1987. This banking system is installed in more than 25 other banks. ...

LaTex equation numbering like 2.1, 2.2, also 2.0.1, 2.0,2, 2.1.1, etc
David Roach wrote: > Is there a simple command to have latex number > the equations by the section numbers automatically. > > David From the LaTeX Companion (what a wonderful book!) %%%%%%%%%%%%%%%%%%%%%% % number equations within sections % In preamble \makeatletter \@addtoreset{equation}{section} \makeatother \renewcommand{\theequation}{\thesection.\arabic{equation}} %%%%%%%%%%%%%%%%%%%%%% Numbers within sections...I use this all the time in articles. Even works with ******************* ******************* Brilliant. And then I got numbering within subsections by repeating and editing (not replacing), so I now have:- (Just after the documentClass command) \makeatletter \@addtoreset{equation}{section} \makeatother \renewcommand{\theequation}{\thesection.\arabic{equation}} \makeatletter \@addtoreset{equation}{subsection} \makeatother \renewcommand{\theequation}{\thesubsection.\arabic{equation}} Bob Bob Marlow schrieb: > David Roach wrote: > >> Is there a simple command to have latex number >> the equations by the section numbers automatically. >> >> David > > From the LaTeX Companion (what a wonderful book!) > > %%%%%%%%%%%%%%%%%%%%%% > > % number equations within sections > % In preamble > > \makeatletter > \@addtoreset{equation}{section} > \makeatother > \renewcommand{\theequation}{\thesection.\arabic{equation}} > > %%%%%%%%%%%%%%%%%%%%%% [more code] > Hi! I th...

Installing patchset 9.2.0.8 on 9.2.0.1 error
The following running services need to be shutdown before continuing: Automatic Updates Background Intelligent Transfer Server COM+ Event System Cryptographic Services DCOM Server Process Launcher DHCP Client DNS Client Distributed Link Tracking Client Error Reporting Service Help and Support Messenger Network Connections Network Location Awareness(NLA) Remote Access Connection Manager Remote Procedure Call (RPC) Remote Registry Secondary Logon Server Shell Hardware Detection System Event Notification System Restore Service TCP/IP NetBIOS Helper Task Scheduler Telephony Terminal Services Themes WebClient Windows Audio Windows Management Instrumentation Windows Time Wireless Zero Configuration Workstation What should I do, while installing patchset 9.2.0.8 on WINDOWS XP, I am getting above error. "peter" <hhh.database@gmail.com> schreef in bericht news:1168424525.937552.232840@k58g2000hse.googlegroups.com... > The following running services need to be shutdown before continuing: > > Automatic Updates > Background Intelligent Transfer Server > COM+ Event System > Cryptographic Services > DCOM Server Process Launcher > DHCP Client > DNS Client > Distributed Link Tracking Client > Error Reporting Service > Help and Support > Messenger > Network Connections > Network Location Awareness(NLA) > Remote Access Connection Manager > Remote Procedure Call (RPC) > Remote Registry > Secondary Logon > Server ...

[ANN] Arachno Ruby IDE 0.1.1 (for SUSE 9.1/9.2 and Ubuntu Linux)
Hello, This fixes a few small bugs, so that it now runs after installation (very usefull feature :-) It requires Kernel 2.6 and if you have a newer glibc and should otherwise work distribution independent. No RPM file at the moment, everything lives in $HOME/ArachnoRuby. You can download it from http://www.ruby-ide.com/download_ruby.php -- Best regards, emailto: scholz at scriptolutions dot com Lothar Scholz http://www.ruby-ide.com CTO Scriptolutions Ruby, PHP, Python IDE 's This version runs fine on archlinux...

[ace-bugs] FW: building ACE 6.2.0/6.2.2 win XL C/C++ v12.1 on AIX7.1 results in compiler error when instantiating ace templates
--_004_80317163A516B94B988E1615F9FAFB1989DFD215otwlxg22opentex_ Content-Type: multipart/alternative; boundary="_000_80317163A516B94B988E1615F9FAFB1989DFD215otwlxg22opentex_" --_000_80317163A516B94B988E1615F9FAFB1989DFD215otwlxg22opentex_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: ace-bugs@list.isis.vanderbilt.edu<mailto:ace-bugs@list.isis.vanderbilt.= edu> Subject: [area]: [synopsis] ACE VERSION: 6.2.2 HOST MACHINE and OPERATING SYSTEM: AIX 7.1 TARGET MACHINE and OPERATING SYSTEM, if different from HOST: COMPILER NAME AND VERSION (AND PATCHLEVEL): THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform- specific file, simply state which one]: config.h -> config-aix-7.h THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you use a link to a platform-specific file, simply state which one (unless this isn't used in this case, e.g., with Microsoft Visual C++)]: platform_aix_ibm.GNU CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features (used by MPC when you generate your own makefiles): AREA/CLASS/EXAMPLE AFFECTED: [What example failed? What module failed to compile?] DOES THE PROBLEM AFFECT: COMPILATION On Unix systems, did you run make realclean first? YES Our application fails to build with ACE6.2.0/6.2.2 on AIX 7.1 with AIX XL C= /C...

Error installing rubygems 0.8.1 with ruby 1.8.2
I have compiled and installed ruby 1.8.2preview3 on a new laptop. On trying to install rubygems 0.8.1 (ruby install.rb) I get an error finding the file zlib at the end of the installation. I tried both commenting and uncommenting the #zlib line in the ext/Setup file during the compilation of ruby 1.8.2. From the console: --- As of RubyGems 0.8.0, library stubs are no longer needed. Searching $LOAD_PATH for stubs to optionally delete (may take a while)... ...done. No library stubs found. /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require__': No such file to load ...

[ANN] openssl-nonblock 0.2.1: moving towards compatibility with Ruby 1.9.2
[Note: parts of this message were removed to make it a legal post.] openssl-nonblock is a gem which enables non-blocking support in Ruby's OpenSSL classes by monkeypatching into the heart of some of its C code. It's vile, it's nasty, but it works! Install it with: gem install openssl-nonblock See the README on Github: http://github.com/tarcieri/openssl-nonblock Thanks to a patchfrom Young Hyun, the latest release now uses exceptions which aim to bridge compatibility with the non-blocking SSL support in the forthcoming Ruby 1.9.2 release. When a read or write is ne...

Oracle server 9.2.0.1.0, Client 9.2.0.4.0, Red Hat Linux enterprise advanced server 2.1
Hi Everybody, My Database server is running on Red Hat Linux enterprise advanced server 2.1, And my Oracle version is 9.2.0.1.0. My Client mechine also Red Hat Linux enterprise advanced server 2.1 , Oracle client version is 9.2.0.4.0. I am running a web application. Our application is in Magic edeveloper. I connect to Oracle using oracle gateway to my application. My Problem is my application is is becoming slow. I am not able to trace where the problem is. Before our application was running fine. recently i upgraded Oracle client version to 9.2.0.4.0. My Oracle client & server versions are different. I am getting error on my client mechine, it showing all memory address on the screen and the part of error is, arg register addr=83498cc .... Dump of memory from 0x83988c to 0x83499cc .... -- End of Call stack trace -- I am not able to trace where the problem is.Any insight please... Thanks, Ssreddy. ...

[News] Releases: Damn Small Linux 4.2.2, Wine 0.9.52, Ruby 1.9.0
[DSL] Current 4.x version: 4.2.2, http://www.damnsmalllinux.org/ 0.9.52 of Wine ,----[ Quote ] | What's new in this release: | - Improved graphics tablet support. | - Support for RPC context handles. | - Fixes for some longstanding screen depth issues. | - Implementation of "My Network Places" shell folder. | - Lots of bug fixes. `---- http://winehq.org/?announce=0.9.52 Ruby 1.9.0 is released ,----[ Quote ] | We are happy to announce of the release of the 1.9.0 the development release. `---- http://www.ruby-forum.com/topic/136553 Related: Review of Damn Small Linux 4.1 ,----[ Quote ] | Damn Small Linux succeeds in accomplishing it's primary goals, being small, | lightweight, fast, and easy to use. I found myself wishing I had a few slower | machines around to install DSL for web browsing and music.   `---- http://www.associatedcontent.com/article/473581/review_of_damn_small_linux_41.html Screenshots Of Damn Small Linux 4.2. ,----[ Quote ] | On the desktop, you can see the new black/blue theme with "Fractal Movements" | background. `---- http://www.linuxseekers.com/content/view/223/1/ Damn Small Linux - Change log for v4.2 http://www.damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?act=ST;f=4;t=19536 DSL 4.0: Damn small improvement ,----[ Quote ] | Damn Small Linux is tiny Linux distribution that John Andrews originally | created in 2002 to see just how many applications could fit into a 50MB | system. The...

compile error re: Open Office 1.1.2 -> com_sun_star_lib_connections_pipe_PipeConnection.c: 558 syntax error before "void"
Anyone solved this ? Thank you, Courtney ...

ruby1.9.2 looking for Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/csv.rb:312
Hi I have just started learning ruby and Im using ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0]. Im trying to run a program from a book for CSV reader and when I try to run it (using csv file as input) i get error from CSV library which is under 1.8. And Im not sure if its correct.. Can someone please help Thanks guru Processing sample.csv /csv_reader.rb:14:in `read_in_csv_data': uninitialized constant CsvReader::BooksInStock (NameError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/csv.rb:312:in `open_reader' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/csv.rb:532:in `parse' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/csv.rb:560:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/csv.rb:531:in `parse' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/csv.rb:311:in `open_reader' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/csv.rb:94:in `foreach' from ./csv_reader.rb:13:in `read_in_csv_data' from ./stock_stats.rb:12 from ./stock_stats.rb:10:in `each' from ./stock_stats.rb:10 -- Posted via http://www.ruby-forum.com/. i came across this forum http://www.ruby-forum.com/topic/206773 but i still dont get what I have to use. Also I thought it might help to provide my code...

[ANN] gettext-2.0.1, gettext_activerecord-2.0.1, gettext_rails-2.0.1
Hi, Ruby-GetText-Package-2.0.1 and the families (gettext-2.0.1, gettext_activerecord-2.0.1 and gettext_rails-2.0.1) are now available. Ruby-GetText-Package is the library/tools for message localization. * gettext - Message localization libraries and tools for all kind of apps/libs. * gettext_activerecord - ActiveRecord Localization * gettext_rails - Rails support with gettext. Changes ------- * gettext-2.0.1 * Fixed bugs * doesn't work with ruby-1.8.5. [Reported by Dan Coutu] * GetText.locale= can't keep the locale. [Reported by Adam Ilan] * Break backward c...

optimizer_features_enable difference between 9.2.0.1/9..2.0.3/9.2.0.6?
Hi, All, I noticed for this parameter optimizer_features_enable , oracle document says: Syntax OPTIMIZER_FEATURES_ENABLE = {8.0.0 | 8.0.3 | 8.0.4 | 8.0.5 | 8.0.6 | 8.0.7 | 8.1.0 | 8.1.3 | 8.1.4 | 8.1.5 | 8.1.6 | 8.1.7 | 9.0.0 | 9.0.1 | 9.2.0} I noticed when I keep it default to 9.2.0 in init.ora, in version 9.2.0.3 and 9.2.0.5 with exact same database and exact same init.ora, oracle CBO did choose different plan. So there is some difference between 9.2.0.X versioin for the CBO. Where can we get such information about the difference? Thanks On 12 Jul 2005 23:37:28 -0700, "chao_ping" <zhuchao@gmail.com> wrote: > So there is some difference between 9.2.0.X versioin for the CBO. >Where can we get such information about the difference? Usually such things are outlined either in the release notes or in the new features documents. Documents that obviously no one reads. -- Sybrand Bakker, Senior Oracle DBA "chao_ping" <zhuchao@gmail.com> wrote in message news:1121236648.759298.79320@g44g2000cwa.googlegroups.com... > Hi, All, > I noticed for this parameter optimizer_features_enable , oracle > document says: > Syntax > OPTIMIZER_FEATURES_ENABLE = {8.0.0 | 8.0.3 | 8.0.4 | 8.0.5 | 8.0.6 | > 8.0.7 | 8.1.0 | 8.1.3 | 8.1.4 | 8.1.5 | 8.1.6 | 8.1.7 | 9.0.0 | 9.0.1 | > 9.2.0} > > > I noticed when I keep it default to 9.2.0 in init.ora, in version > 9.2.0.3 and 9.2.0.5 with exact same database and...

[ANN] [SECURITY] Rack 1.1.2 / Rack 1.2.2, a modular Ruby webserver interface
Hello, Today we are proud to announce the release of Rack 1.1.2 and 1.2.2. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call. The exact details of this are described in the Rack specification, which all Rack applications should conform to. == Changes * March 13th, 2011: Twelfth public release 1.2.2/1.1.2. * Security fix in Rack::Auth::Digest::MD5: when authenticator returned nil, permission was granted on empty password. == Where can I get it? You can download Rack 1.2.2 at http://chneukirchen.org/releases/rack-1.2.2.tar.gz http://rubyforge.org/projects/rack You can download Rack 1.1.2 at http://chneukirchen.org/releases/rack-1.1.2.tar.gz http://rubyforge.org/projects/rack Alternatively, you can checkout from the development repository with: git clone git://github.com/rack/rack.git cd rack && git checkout rack-1.1 cd rack && git checkout rack-1.2 == Thanks Thanks to Brad Ediger for the patch. Happy hacking and have a nice day, Christian Neukirchen on behalf of the Rack Core Team. 26f0cb983fa8f64ab406184ba84e268c428c3a92 rack-1.2.2.tar.gz ebdbd0ee7440a60d37a088acc1b3a63bf8acd...

Ruby 1.9, Ruby Mysql 2.8, Compiling
Hello, all I have successfully compiled and install Ruby 1.9.1.rc2 on 32-bit Ubuntu Intrepid. I have also managed to compile the Ruby MySQL 2.8 native bindings. I eventually got everything going to run Rails 2.2.2 on Ruby 1.9 and connecting to a MySQL database with the native drivers. However, when I hit a page that then hits the databsae, the Webrick 1.3.1 server simply bombs with an immediate exit reporting the following: $ script/server => Booting WEBrick... /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.2.2/lib/ action_controller/routing/segments.rb:6: warning: encoding option is...

Error: a=nominal([1 2 1 2]), b=getlevels(a), b(2)
According to documentation for "categorical", getlevels returns a uniquified version of its input, but is of the same type. I am baffled by the differences in what I see in the input & output: a=nominal([1 2 1 2]) b=getlevels(a) a(2) b(2) % Error: Index exceeds matrix dimensions b(1) % This scalar index returns all 2 elements numel(b) % Shows 2 unique elements I tried a vertical "a", but "b" is still horizontal: a=nominal([1;2;1;2]) b=getlevels(a) % 1x2 row array of unique numbers b(2) % Error: Index exceeds matrix dimensions b(1) % This scalar index returns all 2 elements in 1 row numel(b) % Shows 2 unique element's The help pages for categorical data indicate that the following should be OK, but it generates errors: >> a(find(a==2)) Error using nominalcheck (line 53) Invalid types for comparison. Error in nominal/eq (line 20) [acodes,bcodes] = nominalcheck(a,b); In fact, even find(a==2) generates the same error, and I tacked it down to a==2. This means that the following is erroneous as well: >> a(a==2) Error using nominalcheck (line 53) Invalid types for comparison. Error in nominal/eq (line 20) [acodes,bcodes] = nominalcheck(a,b); I need to access elements in "a" based on a specified unique value. I need to process the elements of "a" differently depending on the value used to select the elemen...

Trustix 2.1
Can someone explain it to me, what's wrong when making new kernel. Similar log is for 2.6.x to, but kernel from package kernel-source-2.4.26-3tr compile good, as usual. Need another rpm to develope and compile ? log: make bzImage cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o init/main.o init/main.c `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. cc1: warning: -malign-loops is obsolet...

Why Ruby 1.9.2 double the speed on 2.53GHz vs 2.2GHz Core 2 Duo?
The following program will take 3.6 seconds to run on a Macbook that has 2.2GHz Core 2 Duo, and 1.8 seconds to run on a Macbook Pro that has 2.53GHz Core 2 Duo. That's a bit weird... why doubling the speed when the CPU is only 15% faster in clock speed? I double checked the CPU meter to make sure none of the 2 cores are in 100% usage (so as to see the CPU is not busy running something else). Could it be because one is Mac OS X Leopard and one is Mac OS X Snow Leopard (64 bit)? Both are running Ruby 1.9.2. ------------------------------------------------------------ p RU...

Singleton class bug in Ruby 1.8.7 is now corrected on 1.9.2 #2
[Note: parts of this message were removed to make it a legal post.] I wonder if I was the only one haunted by this bug in 1.8.7. For my surprise it was corrected in 1.9.2. Has anyone also hit this bug? Here is the bug: https://gist.github.com/839245 -Sergio ...

Re: error compiling bc 1.06 with readline 6.1 and flex 2.54 #2
On Wed, 22 Dec 2010 01:12:43 -0600, Allan wrote: [snip] > I applied the patch to freshly unpacked sources and it worked except > that when I type `make timetest' the test program builds but does not > run for some reason. I simply type the command manually to produce the > required header file as you can see from this output: [snip] The compiler warnings indicate that there are again missing headers. [snip] > gcc -g -O2 -Wall -funsigned-char -o testmul testmul.o number.o > The following may take up to 10 minutes. > testmul > muldigits.h > C:\DOCUME~1\SAdmin\LOCALS~1\Temp/dj300000: line 1: testmul: command not found > make.exe[1]: *** [muldigits.h] Error 127 > make.exe[1]: Leaving directory `d:/djgpp/gnu/bc-1.06/lib' > make.exe: *** [timetest] Error 2 > > D:\djgpp\gnu\bc-1.06>lib\testmul.exe > muldigits.h [snip] Here testmul is not found because the cwd is not in the search path. I have changed the Makefile line from "testmul > muldigits.h" to "./testmul > muldigits.h" and then the test passes flawlessly. I took around 10 minutes on my virtual machine with WinXP. Last but not least pay attention when you configure the sources. As all sources that I distribute, they are configure for DJGPP 2.03 but you are using DJGPP 2.04. Please remove the config.cache file in the top srcdir before you configure the sources or the produced config.h and Makefiles may be wrong. The patch below will fix ...

Web resources about - ruby version 1.9.2 dev with memcached-0.1.18 native compilation error/syntax errors #2 - comp.lang.ruby

Resources last updated: 3/30/2016 2:25:36 AM