<< | Index | >>
suspend
Dia install message
Package libpng12 was not found in the pkg-config search path. Perhaps you should add the directory containing `libpng12.pc' to the PKG_CONFIG_PATH environment variable Package 'libpng12', required by 'cairo', not found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GTK_CFLAGS and GTK_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
Re-install cairo
sudo emerge cairo
Try install dia again
sudo emerge dia
http://trac.ywesee.com/ticket/16
Notes
Try to run migrate with -E:UTF-8 option
ruby1.9 -E:UTF-8 bin/migrate
Result
Note (This is the first I should do)
The good news is, that I've managed to overcome the irregularities in the DRb connection
(by introducing a new method
OddbApp#each_remote_company?, which iterates over all companies wrapped in a ODBA::DRbWrapper
). Using this, I am now able to cleanly access Company data.
Note
Experiment
def remote_each_atc_class(&block)
ODBA::DRbWrapper.new(@atc_classes).each_value(&block)
#@atc_classes.extend(DRb::DRbUndumped).each_value(&block)
end
Run oddb.org/bin/oddbd
Run ch.oddb.org/bin/migrate
Result
Memo
From
+---------+ +--------------+ +----------+ +---------+ | Company |1---n| Registration |1---n| Sequence |1---n| Package | +---------+ +--------------+ +----------+ +---------+
To
+--------------+ +------+ +------+
| Registration | | FI | | PI |
+--------------+ +------+ +------+
n n 1 1
| | | |
1 1 n n
+---------+ +---------+ +----------+ +---------+
| Company |1---n| Product |1---n| Sequence |1---n| Package |
+---------+ +---------+ +----------+ +---------+
n
|
1
+-------+ +-------+
| ATC |1---n| DDD |
+-------+ +-------+
About Price
+-----------+ +-----------+ +----------------+ | | | Price | | Money | | Package |1---n| - type |1---n| - valid_from | | | | | | - amount | +-----------+ +-----------+ +----------------+
Note
Check flow of migrate script
Experiment
def remote_each_atc_class(&block)
ODBA::DRbWrapper.new(@atc_classes).each_value(&block)
end
def remote_each_company(&block)
ODBA::DRbWrapper.new(@companies).each_value(&block)
end
Run oddb.org/bin/oddbd
Run ch.oddb.org/bin/migrate (by Ruby 1.9.1)
Result
masa@masa ~/ywesee/ch.oddb.org $ /home/masa/bin/ruby191/bin/ruby bin/migrate ... (many errors) ...
Note


Note