-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ulc0
committed
Jun 26, 2023
1 parent
cbe20db
commit 0ddd2e9
Showing
1 changed file
with
5 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,36 +7,17 @@ | |
|
||
# COMMAND ---------- | ||
|
||
import pmain | ||
# MAGIC %sh ./_runscript.sh | ||
|
||
# COMMAND ---------- | ||
|
||
# MAGIC %sh python3.10 _runscript.py | ||
# MAGIC %sh find /usr/ -name "*Rmath*" | ||
|
||
# COMMAND ---------- | ||
|
||
# MAGIC %sh echo $LD_LIBRARY_PATH | ||
# MAGIC %sh find /usr/ -name "*libR*so*" | ||
|
||
# COMMAND ---------- | ||
|
||
# MAGIC %sh LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Workspace/Repos/[email protected]/bart_kate/cxx_ex_f/slib | ||
|
||
# COMMAND ---------- | ||
|
||
import sys | ||
|
||
# COMMAND ---------- | ||
|
||
sys.path.append("/Workspace/Repos/[email protected]/bart_kate/cxx_ex_f/slib") | ||
|
||
# COMMAND ---------- | ||
|
||
sys.path | ||
|
||
# COMMAND ---------- | ||
|
||
import pmain | ||
|
||
# COMMAND ---------- | ||
|
||
# MAGIC %sh export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Workspace/Repos/[email protected]/bart_kate/cxx_ex_f/slib | ||
# MAGIC %md | ||
# MAGIC we only have the libR.so and no libRmath.so (which is the Rmath standalone). I belive that the Rmath components are in the "libR.so" and can be accessed with "R.h", however there is some issues with the way the code is written that the "Rmath.h" has different names with the library is standalone. The c++ src code for pmain expects Rmath standalone and those "Rmath.h" names. When I try excluding the `-DRMATH_STANDALONE` flag it results in errors in the pmain src code due to the expectation of the standalone library. |