compil_pyml

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révisionLes deux révisions suivantes
compil_pyml [2008/03/21 23:12] gerardcompil_pyml [2008/03/22 08:10] gerard
Ligne 31: Ligne 31:
 </code> </code>
 peut etre lié à ce [[http://opensolaris.org/jive/thread.jspa?threadID=8179&tstart=135|probleme]] peut etre lié à ce [[http://opensolaris.org/jive/thread.jspa?threadID=8179&tstart=135|probleme]]
 +
  
 ====== hack dans le script setup.py ====== ====== hack dans le script setup.py ======
Ligne 55: Ligne 56:
 </code> </code>
 Pour hash_map, il faut linker avec "-library=stlport4", mais impossible de lui faire rajouter cet argument!? Pour hash_map, il faut linker avec "-library=stlport4", mais impossible de lui faire rajouter cet argument!?
 +
 +Si on le fait manuellement, on arrive a compiler et installer pyml:
 +<code>
 +> cp -rp PyML-0.6.15/setup.py PyML-0.6.15/setup.py.ori
 +> cd PyML-0.6.15/PyML/ext/
 +> cp -rp SMO.h SMO.h.ori
 +> cp -rp Gist.h Gist.h.ori
 +> cp -rp KernelCache.h KernelCache.h.ori
 +> cp -rp SparseDataSet.h SparseDataSet.h.ori
 +> cp -rp PyML/ext/FeatureVector.cpp PyML/ext/FeatureVector.cpp.ori              
 +
 +> cp PyML-0.6.15.old/setup.py PyML-0.6.15/
 +> cp PyML-0.6.15.old/PyML/ext/SMO.h PyML-0.6.15/PyML/ext/
 +> cp PyML-0.6.15.old/PyML/ext/Gist.h PyML-0.6.15/PyML/ext/
 +> cp PyML-0.6.15.old/PyML/ext/KernelCache.h PyML-0.6.15/PyML/ext/
 +> cp PyML-0.6.15.old/PyML/ext/SparseDataSet.h PyML-0.6.15/PyML/ext/
 +
 +</code>
 +pour tester:
 +<code>
 +> cd data/
 +> pwd
 +/local/apps/src/PyML-0.6.15
 +> python
 +Python 2.4.4 (#1, Jan  9 2007, 23:31:33) [C] on sunos5
 +Type "help", "copyright", "credits" or "license" for more information.
 +>>> from PyML import *
 +Traceback (most recent call last):
 +  File "<stdin>", line 1, in ?
 +  File "/local/apps/lib/lib/python2.4/site-packages/PyML/datafunc.py", line 2, in ?
 +    import arrayWrap
 +  File "/local/apps/lib/lib/python2.4/site-packages/PyML/arrayWrap.py", line 2, in ?
 +    from ext import csparsedataset
 +  File "/local/apps/lib/lib/python2.4/site-packages/PyML/ext/csparsedataset.py", line 7, in ?
 +    import _csparsedataset
 +ImportError: ld.so.1: python2.4: fatal: relocation error: file /local/apps/lib/lib/python2.4/site-packages/PyML/ext/_csparsedataset.so: symbol __1cDstd2l6Frn0ANbasic_ostream4Ccn0ALchar_traits4Cc____pkc_2_: referenced symbol not found
 +
 +</code>
  
 ====== références ====== ====== références ======
  • compil_pyml.txt
  • Dernière modification : 2017/08/25 09:56
  • de 127.0.0.1