LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Porting SlackBuild of Scilab from Slackware 12 to Slackware64 13 (https://www.linuxquestions.org/questions/slackware-14/porting-slackbuild-of-scilab-from-slackware-12-to-slackware64-13-a-768178/)

Alexvader 11-10-2009 08:09 AM

Porting SlackBuild of Scilab from Slackware 12 to Slackware64 13
 
Hi Forum

I have been trying to create a pkg of Scilab from Slackware 12 in Slackware64 13...

But the slackbuild abotrs with an error about the version of Tcl...

... So far I have not tinkered with the Tcl version of Slackware... thing is "as installed"...




.............................
checking for PVM architecture... UNKNOWN
configure: WARNING: PVM unable to find architecture: I will not use PVM
checking for main in -ldl... yes
checking for header file tcl.h... found in /usr/include
checking if tcl is version 8.4 or later... (8.5) yes
checking for tcl library tcl8.5... configure: error: header file tcl.h has been found for 8.4* but no corresponding tcl library (ie
libtcl8.4.so)

I suppose one could make some sort of hackerish trick like ln -s /../../libtcl8.4.so /../../libtcl8.5.so just to see it it works...

...but this is a bad principle... messing around with system libs...

So, does anybody have any suggestion...

...I managed to set the python of Slackware64 13 to 2.5 using a slackbuild of a previous version... It did not overwrote anything bcause it installs to a separate source tree... only thing changed is a symlink...

Can I ( Do i Really Need to ) do this with tcl in order to have scilab working...?

BRGDS

Alex

Johncc330 11-10-2009 09:43 AM

I have the impression there is some confusion in your Tcl installation.
(or maybe in the SciLab configure macros).

1) The script detects Tcl version 8.5,
2) but it is still looking for libraries of version 8.4x

Maybe, when you installed the 64 version you parcially install Tcl (or still
have some older header files around? Check if you have any old libtcl8.4* left on
your machine.

I compiled Scilab recently on a clean Slackware64 system, and I had no problems.

John

Alexvader 11-10-2009 10:14 AM

Hi Johncc330

I won´t be with my Slackware lappy until tonite... but I will check on this...

Thx

But Just tell me, did you make any update...? Or are you using Slackware64 13 install "as is"...?

Ivshti 11-10-2009 10:20 AM

Do you have compatibility libraries installed? That may be the problem.
I suggest reinstalling tcl just in case, and I guess that you have a old tcl package that you haven't uninstalled.

If that doesn't work, download a new version of scilab and compile it with src2pkg.

I can compile 5.1.1 on a 32 bit system if you like. If that won't do, I'll compile a 64 bit one.

Alexvader 11-10-2009 10:30 AM

Hi Ivsthi

Thkx for yr help... :-)

As soon as I get back home, I'll put my hands on the job... :-)

BRGDS

Alex

Alien Bob 11-10-2009 10:34 AM

Try this SlackBuild - it should work on 64bit as far as I can see.
http://svn.sarava.org/listing.php?re...%2F&rev=0&sc=0

Eric

Alexvader 11-10-2009 10:46 AM

Quote:

Originally Posted by Ivshti (Post 3751725)
I can compile 5.1.1 on a 32 bit system if you like. If that won't do, I'll compile a 64 bit one.

AFAIK Scilab 5.1.1 requires a lot of extra packages... I tried to build it 64 without PVM and UMFPACK... so I built lapack qhull blas java and ant from Sllackbuilds... Had to build ocaml from INRIA ( Some sort of Objective C compiler they use in Scilab ) as an external dependency, and proceeded to Build Scilab, but it aborted in make with some funny error, do not recall exactly what, but I guess it would not find some headers inside some folders in Scilab 5.1.1 Source tree...

I just left it for the time being...

Have you managed to build it 64...? awesome... :-D

BRGDS

Alex

Ivshti 11-10-2009 11:00 AM

I assume you have src2pkg installed. Just type this
Code:

cd /tmp; src2pkg -I http://www.scilab.org/download/5.1.1/scilab-5.1.1-src.tar.gz
This will download, compile, and install the package for you.

Edit: try using the source of an older version then.

Alexvader 11-10-2009 11:17 AM

Hi @Alien Bob, @Ivshi

I will try this as soon as I get back home... :-)

THX a lot ppl, I will post back the results tomorrow...

Once again thanks PPL...

knudfl 11-10-2009 01:13 PM

There is a 'Suitesparse' slackbuild here

http://www.slacky.eu/aadm/pkgs/index...tesparse&ver=6

http://repository.slacky.eu/slackwar...rse.SlackBuild

... also providing the Umfpack libraries etc. etc.

Johncc330 11-10-2009 05:26 PM

Quote:

Originally Posted by Alexvader (Post 3751712)
Hi Johncc330
But Just tell me, did you make any update...? Or are you using Slackware64 13 install "as is"...?

Well, I did install the 32 bit compatibility libraries, which aren't installed by default, but SciLab was compiled in 64 mode, so that shouldn't be the difference.

John

Alexvader 11-11-2009 09:43 AM

Hi @Ivshti,@knudfl,@Alien Bob

@ Ivshti :

So.... I grabbed the tarball of Scilab... ( do not have net access at home, and I have 2 lappies, one of them has OpenFOAM installed which i need for my wrk... the Other has Slackware, where I am trying to build my Engineering apps, did no build openFoam yet, so i leave it at home untill I can have everything that i need, built... ) and src2pkg it, it complained about ant from apache, so ... will grab it today, and install it... and try again... may also grab caml from Inria... in case Scilab build complains about that too... more news tomorrow... I am two lazy to bring two lappies along... :-)

@ knudfl :

Great... :-) that slackbuild worked allright... Will try again tonite with the most recent version of SuiteSparse


@ Alien Bob :

I will try your SBuild tonite...



...ppl... a guy comes home exhausted after a 2 hour training of Kyokushin Kai karate, or Kenjutsu... ( depends on the day of the week...) after a hard day of work aroud CAD applications, simulation stuff.. waiting for iterations after iterations in front of a workstation screen... Sometimes I feel that 24 hrs are just not enough... :-)

Thanks a lot ppl....

BRGDS

Alex

Alexvader 11-13-2009 05:35 PM

Hi Ivshti

'da niewz :

Grabbed the Scilab 5.1.1 tarball, tried to src2pkg it but it aborted...

bash-3.1# cd /tmp; src2pkg -I http://www.scilab.org/download/5.1.1...1.1-src.tar.gz
Downloading sources with wget from: http://www.scilab.org/download/5.1.1...1.1-src.tar.gz
Sources downloaded to: /tmp/scilab-5.1.1-src.tar.gz
Deleting old build files - Done
Creating working directories:
PKG_DIR=/tmp/scilab-5.1.1-pkg-1
SRC_DIR=/tmp/scilab-5.1.1-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - None found
Found configure script - Done
Configuring sources using:
LDFLAGS="-L/lib64 -L/usr/lib64" CFLAGS="-O2 -fPIC -m64" ./configure --prefix=/usr --libdir=/usr/lib64
ERROR! Configuring sources has failed!
This may be because of some missing libraries, or you may
need to pass extra options to configure using EXTRA_CONFIGS.
Sorry! No Dependency or Requirements information found.

Notice - Showing short options in a separate xterm.
bash-3.1#


back to ./conf make...

It complained about missing dependencies like Java flexdock, so I grabbed and untared Scilab pre-requirements ( it untars to the same folder as Scilab... ) and ran conf --help; based on output I decided to exclude pvm, matio, and ocaml... ran conf, and make...

...build aborted due to the fact that a Scicos ( this is a "must have" for me... :-( ) toolbox would not find the get_time function, so I make clean, configure again --without-scicos...

.........................................

make

...............

trackinstall

...................


This created a package in /tmp which I installed... Tried to run some of the demos...

But the graphical window displays ( they pop up allright ) with Transfer function values outputs, and graphs, remain white... although the simulation completes alright...


#1) How can I build Scicos... ( what must I do so that building of Scicos finds get_time...) ?
#2) What must I do to enable graphical displays...?


More news 2morrow about Scilab 4.1.2


BRGDS

Alex

Alexvader 11-14-2009 12:05 PM

Hi Forum, @Alien Bob


Quote:

Originally Posted by Alien Bob (Post 3751742)
Try this SlackBuild - it should work on 64bit as far as I can see.
http://svn.sarava.org/listing.php?re...%2F&rev=0&sc=0

Eric

Downloaded the SlackBuild from the site, as well as the diff and Manifest files to a folder...

Changed ARCH to x86_64, and launched ./scilab.SlackBuild, It downloads the source tarball to ./scilab and stops...

bash-3.1# pwd
/home/alex/Desktop/buu/SciLabBuild
bash-3.1# ls
scilab-4.1.2.diff scilab.SlackBuild
bash-3.1# ./scilab.SlackBuild
--2009-11-14 18:02:34-- http://www.scilab.org/download/4.1.2...1.2-src.tar.gz
Resolving www.scilab.org... 193.51.192.152
Connecting to www.scilab.org|193.51.192.152|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15892277 (15M) [application/x-gzip]
Saving to: `/home/alex/Desktop/buu/SciLabBuild/scilab/scilab-4.1.2-src.tar.gz'

100%[==================================================================================================== ======================================================================>] 15,892,277 460K/s in 46s

2009-11-14 18:03:21 (339 KB/s) - `/home/alex/Desktop/buu/SciLabBuild/scilab/scilab-4.1.2-src.tar.gz' saved [15892277/15892277]

bash-3.1#


How do I need to change the SlackBuild for this to build...?


BRGDS

Alex

knudfl 11-14-2009 01:03 PM

# 13 : How about " ScicosLab "

http://www.scicoslab.org/

git clone http://cermics.enpc.fr/~jpc/scilab-g.../scicoslab.git

cd scicoslab/
./autogen.sh
### Uncomment line 3...14 , Makefile.in .
./configure && make

Notice : 'g77' or similar is required.
.....

Alexvader 11-14-2009 01:41 PM

Hi Knudfl

Thanks for your help :-)


Quote:

Originally Posted by knudfl (Post 3757094)

...cd scicoslab/
./autogen.sh
### Uncomment line 3...14 , Makefile.in .
./configure && make

Notice : 'g77' or similar is required.
.....

bash-3.1$ pwd
/home/alex/Desktop/ScicosLab/scicoslab-gtk-4.3
bash-3.1$ ls
ACKNOWLEDGEMENTS Makefile.dist Makemex RELEASE_NOTES autogen.sh configheaders.bat imp license.txt pvmconf.bat scripts
CHANGES Makefile.in Makemex.in Scilab.sln autom4te.cache configure intersci macros pvmconf.sce tcl
Make.bat Makefile.incl Makesubdirs.bat Win-util bin configure.in lcc man routines tclmajor
Makefile Makefile.incl.in Path.incl WinConfigure.verif config contrib libs maple scilab.iss tclminor
Makefile.OBJ Makefile.incl.mak Perl X11_defaults config.log demos libtool ocaml scilab.quit tests
Makefile.OBJ.in Makefile.mak README_Unix aclocal.m4 config.status examples licence.txt pvm3 scilab.star util
bash-3.1$ ./autogen.sh


.........................


configure: WARNING: PVM unable to find architecture: I will not use PVM
checking for main in -ldl... yes
checking for header file tcl.h... found in /usr/include
checking if tcl is version 8.4 or later... (8.5) yes
checking for tcl library tcl8.5... configure: error: header file tcl.h has been found for 8.4* but no corresponding tcl library (ie libtcl8.4.so)

but

bash-3.1$ ls -la /usr/lib64 | grep libtcl
lrwxrwxrwx 1 root root 12 2009-10-30 03:49 libtcl.so -> libtcl8.5.so
-r-xr-xr-x 1 root root 1140744 2009-04-29 20:40 libtcl8.5.so
-rw-r--r-- 1 root root 488476 2009-11-04 02:19 libtclcad.a
-rwxr-xr-x 1 root root 1352 2009-11-04 02:19 libtclcad.la
lrwxrwxrwx 1 root root 19 2009-11-04 03:27 libtclcad.so -> libtclcad.so.19.0.1
lrwxrwxrwx 1 root root 19 2009-11-04 03:27 libtclcad.so.19 -> libtclcad.so.19.0.1
-rwxr-xr-x 1 root root 248824 2009-11-04 02:19 libtclcad.so.19.0.1
-rw-r--r-- 1 root root 3978 2009-04-29 20:40 libtclstub8.5.a
lrwxrwxrwx 1 root root 13 2009-10-30 03:49 libtclx.so -> libtclx8.4.so
lrwxrwxrwx 1 root root 21 2009-10-30 03:49 libtclx8.4.so -> tclx8.4/libtclx8.4.so

...

bash-3.1$ ls -la /usr/include | grep tcl
-rw-r--r-- 1 root root 1835 2009-05-12 21:41 expect_tcl.h
-rw-r--r-- 1 root root 6867 2009-11-04 02:18 itcl.h
-rw-r--r-- 1 root root 11076 2009-11-04 02:18 itclDecls.h
-rw-r--r-- 1 root root 17551 2009-11-04 02:18 itclInt.h
-rw-r--r-- 1 root root 53001 2009-11-04 02:18 itclIntDecls.h
-rw-r--r-- 1 root root 2884 2009-04-03 07:16 k3bvideodvdtitledetectclippingjob.h
drwxr-xr-x 4 root root 4096 2009-04-29 20:40 tcl-private
-rw-r--r-- 1 root root 87115 2009-04-29 20:40 tcl.h
-rw-r--r-- 1 root root 225338 2009-04-29 20:40 tclDecls.h
-rw-r--r-- 1 root root 5752 2008-11-04 11:21 tclExtend.h
-rw-r--r-- 1 root root 3831 2009-04-29 20:40 tclPlatDecls.h
-rw-r--r-- 1 root root 18634 2009-04-29 20:40 tclTomMath.h
-rw-r--r-- 1 root root 24364 2009-04-29 20:40 tclTomMathDecls.h
-rw-r--r-- 1 root root 1733 2009-05-12 21:41 tcldbg.h


Seems that I will have to downgrade tcl 8.5 back to tcl 8.4.... can they be both present in my system...?

I Have downgraded Python 2.6.2 to Python 2.5.2 in order for Code Aster to compile... without any major problems... can the same hackery be performed with tcl...?

BRGDS

Alex

Strangest thing is that Tcl 8.5 is allowed to build Scilab, or ScicosLab...

Tcl 8.5 is the default of Slackware 64 13... never tikered with that... so, how come tcl.h is for 8.4... ???

smoooth103 11-14-2009 11:02 PM

Quote:

Originally Posted by Alexvader (Post 3757049)
Hi Forum, @Alien Bob




Downloaded the SlackBuild from the site, as well as the diff and Manifest files to a folder...

Changed ARCH to x86_64, and launched ./scilab.SlackBuild, It downloads the source tarball to ./scilab and stops...


How do I need to change the SlackBuild for this to build...?


Alex

Delete the manifest checking out of the slackbuild. There appears to be a problem with it. Once I removed it, it built correctly.

smoooth

knudfl 11-15-2009 06:27 AM

About python : More than one version is OK :
.. but only one /usr/bin/python

.....

About tcl : Two or more "runtime" is OK.
.. but only one /usr/bin/tclsh ( link )
.. and of course one /usr/lib/libtcl.so


'tcl-8.4.18' ( like the slack 12.1 version ) provides
/usr/include/tcl.h
/usr/bin/tclsh8.4

'tcl-8.5.7' in Slackware 13 provides /usr/include/tcl.h ,
other Linux's : /usr/include/tcl8.5/tcl.h
.. and 'tcl-8.5.7' provides /usr/bin/tclsh8.5
.....
.....

ScicosLab :
the 'git clone' is supposed to be the latest bug fixed version.
ScicosLab requires /usr/bin/g77 , and compiles with no errors
using either tcl-8.4.x or tcl-8.5.7
.....

Alexvader 11-15-2009 03:59 PM

Quote:

Originally Posted by smoooth103 (Post 3757465)
Delete the manifest checking out of the slackbuild. There appears to be a problem with it. Once I removed it, it built correctly.

smoooth

I did so... and it progressed a lot further, but aborted at the patch thing...
#####################################
scilab-4.1.2/scilab.quit
scilab-4.1.2/SVN_revision.incl
patching file bin/scilink
patching file util/scidem
patching file util/scidoc
Hunk #1 FAILED at 7.
1 out of 1 hunk FAILED -- saving rejects to file util/scidoc.rej
bash-3.1#

Is it safe to remove the patch thing from scilab.SlackBuild...?

BRGDS

Alex

Alexvader 11-15-2009 04:39 PM

Hi Knudfl, I did so...


Quote:

Originally Posted by knudfl (Post 3757094)
# 13 :...cd scicoslab/
./autogen.sh
### Uncomment line 3...14 , Makefile.in .
./configure && make

Notice : 'g77' or similar is required.
.....

but...

bash-3.1$ ./configure
...............................

checking for values.h... yes
checking for main in -lncurses... yes
checking for PVM architecture... LINUXX86_64
configure: WARNING: checking for tcl/tk.
checking for Tcl configuration... configure: WARNING: Can't find Tcl configuration definitions

But Tcl and Tk are there allright

bash-3.1# find /mnt/cdrom -name tcl
/mnt/cdrom/slackware64/tcl
/mnt/cdrom/source/tcl
/mnt/cdrom/source/tcl/tcl
bash-3.1# ls /mnt/cdrom/slackware64/tcl
expect-5.44.1.11-x86_64-3.txt hfsutils-3.2.6-x86_64-4.txz maketag tcl-8.5.7-x86_64-1.txz tclx-8.4-x86_64-2.txz.asc tk-8.5.7-x86_64-1.txt
expect-5.44.1.11-x86_64-3.txz hfsutils-3.2.6-x86_64-4.txz.asc maketag.ez tcl-8.5.7-x86_64-1.txz.asc tix-8.4.3-x86_64-1.txt tk-8.5.7-x86_64-1.txz
expect-5.44.1.11-x86_64-3.txz.asc install-packages tagfile tclx-8.4-x86_64-2.txt tix-8.4.3-x86_64-1.txz tk-8.5.7-x86_64-1.txz.asc
hfsutils-3.2.6-x86_64-4.txt install.end tcl-8.5.7-x86_64-1.txt tclx-8.4-x86_64-2.txz tix-8.4.3-x86_64-1.txz.asc
bash-3.1# installpkg /mnt/cdrom/slackware64/tcl/tcl-8.5.7-x86_64-1.txz
Verifying package tcl-8.5.7-x86_64-1.txz.
Installing package tcl-8.5.7-x86_64-1.txz [ADD]:
PACKAGE DESCRIPTION:
# tcl (Tool Command Language)
#
# Tcl, developed by Dr. John Ousterhout, is a simple to use text-based
# script language with many built-in features which make it especially
# nice for writing interactive scripts.
#
Executing install script for tcl-8.5.7-x86_64-1.txz.
Package tcl-8.5.7-x86_64-1.txz installed.

bash-3.1# installpkg /mnt/cdrom/slackware64/tcl/tk-8.5.7-x86_64-1.txz
Verifying package tk-8.5.7-x86_64-1.txz.
Installing package tk-8.5.7-x86_64-1.txz [REC]:
PACKAGE DESCRIPTION:
# tk (Tk toolkit for Tcl)
#
# Tk is an extension to Tcl that allows you to quickly and easily build
# X11 applications that have the look and feel of Motif apps.
#
Executing install script for tk-8.5.7-x86_64-1.txz.
Package tk-8.5.7-x86_64-1.txz installed.

bash-3.1# find / -name tclsh
/root/Downloads/brlcad-7.16.0/misc/win32-msvc8/tclsh
/usr/bin/tclsh
/tmp/brlcad-7.16.0-src-1/misc/win32-msvc8/tclsh
bash-3.1#

bash-3.1# ls /usr/lib64 | grep libtcl
libtcl.so
libtcl8.5.so
libtclcad.a
libtclcad.la
libtclcad.so
libtclcad.so.19
libtclcad.so.19.0.1
libtclstub8.5.a
libtclx.so
libtclx8.4.so

bash-3.1# ls /usr/lib64 | grep libtk
libtk.so
libtk8.5.so
libtkstub8.5.a
bash-3.1#

What must I do here...? I guess some things are out of default prefix, but which...?



bash-3.1# ls /usr/include | grep tk
atk-1.0
gtk-1.2
gtk-2.0
gtk-unix-print-2.0
gtkhtml-2.0
gtkspell-2.0
itk.h
itkDecls.h
pygtk-2.0
tk-private
tk.h
tkDecls.h
tkPlatDecls.h
bash-3.1#


bash-3.1# ls /usr/include | grep tcl
expect_tcl.h
itcl.h
itclDecls.h
itclInt.h
itclIntDecls.h
k3bvideodvdtitledetectclippingjob.h
tcl-private
tcl.h
tclDecls.h
tclExtend.h
tclPlatDecls.h
tclTomMath.h
tclTomMathDecls.h
tcldbg.h
bash-3.1#


BRGDS


Alex

smoooth103 11-15-2009 09:20 PM

Quote:

Originally Posted by Alexvader (Post 3758109)
I did so... and it progressed a lot further, but aborted at the patch thing...
#####################################
scilab-4.1.2/scilab.quit
scilab-4.1.2/SVN_revision.incl
patching file bin/scilink
patching file util/scidem
patching file util/scidoc
Hunk #1 FAILED at 7.
1 out of 1 hunk FAILED -- saving rejects to file util/scidoc.rej
bash-3.1#

Is it safe to remove the patch thing from scilab.SlackBuild...?

BRGDS

Alex

Yeah I think I took out the patch too. Sorry I didn't mention before. After that, it made a package, I installed it.. and scilab appears to work normally...

I'm not using scilab in a production environment either -- mostly as a toy, so if you are -- you may want to look into what the patch is for.

Hope this helps,
smoooth103


All times are GMT -5. The time now is 12:33 AM.