view · edit · sidebar · attach · print · history

20120331-update-fachinfo-exporter

<< | Index | >>


summary

commit

ch.oddb.org

index


Update Fachinfo exporter

Check Fachinfo exporter

Update exporter job to handle these ODDB object.

  • ODDB::Text::Table
  • ODDB::Text::Cell

Then export only a Fachinfo that it has Text::Table Object in paragraph.

z.B.

http://oddb.yasuhiro.org/de/gcc/fachinfo/reg/41291

export_fachinfo in src/plugin/yaml.rb

72 #export_array(name, @app.fachinfos.values)
73 target = [@app.registration('41291').fachinfo]
74 export_array(name, target)
ch.oddb> Exporter.new(self).export_fachinfo_yaml
fachinfo.yaml

exported fachinfo.yaml

...
       - !oddb.org,2003/ODDB::Text::Table 
          rows: 
          - - !oddb.org,2003/ODDB::Text::Cell 
              formats: 
              - !oddb.org,2003/ODDB::Text::Format 
                values: []

                start: 0
                end: -1
              text: Erreger
              preformatted: false
            - !oddb.org,2003/ODDB::Text::Cell 
              formats: 
              - !oddb.org,2003/ODDB::Text::Format 
                values: []

                start: 0
                end: -1
              text: Sensibel
              preformatted: false
...

Attach:table-in-parafraph-fachinfo-yaml-20120331.txt

Updating works fine.

Checked ebps converter

checked as firefox.epub

  • replaced scp to mv.
  • replaced notification receiver.
# title
Ebook compendium_ch.oddb.org.firefox.epub finished at 31.03.2012 14:11:08 

# body
Input file for conversion: /home/yasu/Documents/workspace/ywesee/ebps/data/yaml/fachinfos.ch.oddb.yaml

The Ebook compendium_ch.oddb.org.firefox.epub was generated and stored in /home/yasu/Documents/workspace/ywesee/ebps/data/books

Postprocess: the following commands were executed
 - mv compendium_ch.oddb.org.firefox.epub /var/www/oddb.org/data/downloads/compendium_ch.oddb.org.firefox.epub in directory /home/yasu/Documents/workspace/ywesee/ebps/data/books/
Generated epub(.txt)

Attach:compendium_ch.oddb.org.firefox-20120331.epub.txt

Table

setup de.oddb.org

updated following wiki pages(installed gems usw)

I could run oddbd of de.oddb.org fine.
remains setup mod_ruby

This error
$ sudo /etc/init.d/apache2 restart
 * apache2 has detected an error in your setup:
apache2: Syntax error on line 164 of /etc/apache2/httpd.conf: Cannot load /usr/local/apache/libexec/mod_ruby.so into server: /usr/local/apache/libexec/mod_ruby.so: cannot open shared object file: No such file or directory
 * ERROR: apache2 failed to stop
ldd result
$ ldd /usr/lib/apache2/modules/mod_ruby186.so 
        linux-gate.so.1 =>  (0xb77db000)
        librt.so.1 => /lib/librt.so.1 (0xb75f2000)
        libdl.so.2 => /lib/libdl.so.2 (0xb75ee000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb75bd000)
        libm.so.6 => /lib/libm.so.6 (0xb7597000)
        libc.so.6 => /lib/libc.so.6 (0xb7438000)
        /lib/ld-linux.so.2 (0xb77dc000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb741e000)
$ ldd /usr/lib/apache2/modules/mod_ruby193.so 
        linux-gate.so.1 =>  (0xb7867000)
        libruby.so.1.9 => /usr/local/lib/libruby.so.1.9 (0xb762d000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb75fb000)
        librt.so.1 => /lib/librt.so.1 (0xb75f2000)
        libdl.so.2 => /lib/libdl.so.2 (0xb75ee000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb75bc000)
        libm.so.6 => /lib/libm.so.6 (0xb7596000)
        libc.so.6 => /lib/libc.so.6 (0xb7438000)
        /lib/ld-linux.so.2 (0xb7868000)

--enable-shared

  • Ruby 1.9.3 -> with --enable-shared (libruby.so) dynamic library
  • Ruby 1.8.6 -> no --enable-shared static library

then compiled and patched 1.8.6, again.

ruby 1.8.6

$ ./configure --prefix=/home/yasu/usr/local --disable-option-checking --with-openssl-dir=/home/yasu/usr/local --enable-shared --libdir=/home/yasu/usr/local/lib

mod_ruby

$ ~/usr/local/bin/ruby ./configure.rb --prefix=/home/yasu/usr/local --exec-prefix=/home/yasu/usr/local --with-apxs=/usr/sbin/apxs --with-apr-includes=/usr/include/apr-1

ldd /usr/lib/apache2/modules/mod_ruby186.so

        linux-gate.so.1 =>  (0xb78b2000)
        libruby.so.1.8 => /usr/lib/libruby.so.1.8 (0xb77ac000)
        librt.so.1 => /lib/librt.so.1 (0xb778b000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7787000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7756000)
        libm.so.6 => /lib/libm.so.6 (0xb772f000)
        libc.so.6 => /lib/libc.so.6 (0xb75d1000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb75b7000)
        /lib/ld-linux.so.2 (0xb78b3000)
$ sudo rm -fr /usr/lib/libruby.so.1.8
$ sudo ln -s /home/yasu/usr/local/lib/libruby.so.1.8.6 /usr/lib/libruby.so.1.8

Hello de.oddb.org

NOTE

ch.oddb.org
  • Ruby 1.9.3-p0 (/usr/local/bin/ruby)
  • Ruby-1.8.7-p357 (/usr/bin/ruby18, /usr/bin/ruby)
de.oddb.org
  • Ruby-1.8.6-p369 (/home/yasu/usr/local/bin/ruby18)
ebps
  • Ruby-1.9.1-p243 (/home/yasu/usr/local/bin/ruby19)

If switch these, to make sure that folloiwng setting.

  • LoadModule of mod_ruby.so (httpd.conf)
  • symbolic link to Dynamic library libruby.so (/usr/lib/libruby.so.1.8)
  • symbolic link to ruby executable in /home/yasu/usr/local/bin/ruby

TODO:

to check ruby-build

view · edit · sidebar · attach · print · history
Page last modified on March 31, 2012, at 07:41 PM