LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-10-2009, 08:09 AM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
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
 
Old 11-10-2009, 09:43 AM   #2
Johncc330
Member
 
Registered: Mar 2007
Posts: 101

Rep: Reputation: 19
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
 
Old 11-10-2009, 10:14 AM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
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"...?

Last edited by Alexvader; 11-10-2009 at 10:20 AM.
 
Old 11-10-2009, 10:20 AM   #4
Ivshti
Member
 
Registered: Sep 2008
Distribution: Linvo
Posts: 132

Rep: Reputation: 43
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.

Last edited by Ivshti; 11-10-2009 at 10:24 AM.
 
Old 11-10-2009, 10:30 AM   #5
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Ivsthi

Thkx for yr help... :-)

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

BRGDS

Alex
 
Old 11-10-2009, 10:34 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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
 
1 members found this post helpful.
Old 11-10-2009, 10:46 AM   #7
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Quote:
Originally Posted by Ivshti View Post
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
 
Old 11-10-2009, 11:00 AM   #8
Ivshti
Member
 
Registered: Sep 2008
Distribution: Linvo
Posts: 132

Rep: Reputation: 43
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.

Last edited by Ivshti; 11-10-2009 at 11:08 AM.
 
Old 11-10-2009, 11:17 AM   #9
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
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...
 
Old 11-10-2009, 01:13 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
 
Old 11-10-2009, 05:26 PM   #11
Johncc330
Member
 
Registered: Mar 2007
Posts: 101

Rep: Reputation: 19
Quote:
Originally Posted by Alexvader View Post
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
 
Old 11-11-2009, 09:43 AM   #12
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
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
 
Old 11-13-2009, 05:35 PM   #13
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
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

Last edited by Alexvader; 11-14-2009 at 11:55 AM.
 
Old 11-14-2009, 12:05 PM   #14
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Forum, @Alien Bob


Quote:
Originally Posted by Alien Bob View Post
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
 
Old 11-14-2009, 01:03 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
.....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Status of compilation of Scilab (v4.x and v5.1.1 ) under Slackware 13 Alexvader Slackware 1 10-26-2009 07:53 AM
For the Krusader fans on slackware64 slackbuild ROXR Slackware 0 07-20-2009 06:03 PM
Kmymoney2 Slackware64 Sbo Slackbuild Error AlleyTrotter Slackware 4 07-05-2009 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration