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 04-22-2010, 06:16 AM   #16
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Lightbulb


Quote:
Originally Posted by dc_eros View Post
Hi dumdadum,

I have successfully built the hdf5 package whose files are coming from slackbuilds. It just builds fine. I installed it without problem. Though I don't know what is it for

I'm using that PC with slackware-current as of apr 20, 2010 (via putty from my office PC - WinXP)
Hi,

The problem isnt building hdf5. And I think Eric talked to the people at SBo cause the link was pointing to a non-existing source, but it was changed, and probably the .SlackBuild file too was updated.

No the problem is compiling mnc2nii. After I've installed the two requirements, NetCDF and HDF5, and tried to build my own .SlackBuild file, I get the error up above. I enabled minc2 in the ./configure section just like it said in the README and INSTALL files, still, I think I'm missing something, cause the compiler is complaining about an undefined constant that "is supposed to" come with the source of mnc2nii.

Any help would be much appreciated.

Cheers,
Dumdadum

ps: I too log into my slack machine from work. I will be working on this build all day probly...

Last edited by dumdadum; 04-22-2010 at 06:17 AM.
 
Old 04-22-2010, 06:26 AM   #17
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Exclamation minc2

Here is the download page to minc2:

http://minc.sourcearchive.com/downloads/2.0.15/

Here is the web page for other minc2 related stuff, where I didnt find ( yet ) anything helpfull:

http://minc.sourcearchive.com/docume...8c-source.html

If that can help...
Dumdadum
 
Old 04-22-2010, 10:05 PM   #18
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 294

Rep: Reputation: 39
Maybe this will help:

http://www.bic.mni.mcgill.ca/piperma...t/2009-May.txt

http://www2.bic.mni.mcgill.ca/piperm...ay/002480.html

Last edited by dc_eros; 04-22-2010 at 10:17 PM.
 
1 members found this post helpful.
Old 04-24-2010, 08:27 AM   #19
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Exclamation

Yes you were right it did help. I subscribed to the mailing list and posted my second question there. After adding the definition for the constant, I ran the script again, and this time I was quick enough to notice an important warning:

configure: WARNING: unrecognized options: --enable-minc2

The ./configure option --enable-minc2 was described in the INSTALL.minc file of the source code. Its weird that I added this option and that ./configure doesnt recognize it. This is the ./configure section of my script:

./configure \
--prefix=/usr \
--mandir=/usr/man \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--localstatedir=/var \
--sysconfdir=/etc \
--includedir=/usr/local/include \
--bindir=/usr/bin \
--sbindir=/sbin \
--with-build-path=/usr/local \
--enable-minc2 \
--enable-static \
--disable-shared \
--build=$ARCH-slackware-linux

If anyone can point me to the right direction that would be great.

Cheers,
Dumdadum
 
Old 04-24-2010, 12:09 PM   #20
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You may want to consider using the last stable minc1 version 1.5.1 as it has less extra dependencies(just libtext-format-perl-0.52).

For the newer version use 2.0.18:
compile and install netcdf-3.6.1 first.
run ldconfig
Then compile and install hdf5-1.6.6 (using the later hdf5-1.8.x will not work)
run ldconfig
compile and install minc-2.0.18
run ldconfig
compile and install libtext-format-perl-0.52
compile and install libgetopt-tabular-perl-0.3

You can use src2pkg to build and package all these very handily.
The --enable-minc2 option is deprecated (it's now the default)
 
1 members found this post helpful.
Old 04-26-2010, 08:14 AM   #21
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by gnashley View Post
You may want to consider using the last stable minc1 version 1.5.1 as it has less extra dependencies(just libtext-format-perl-0.52).
No thanks, my roomate needs version 2, so I will get it working, surely someone else did it.

Quote:
For the newer version use 2.0.18:
compile and install netcdf-3.6.1 first.
run ldconfig
Then compile and install hdf5-1.6.6 (using the later hdf5-1.8.x will not work)
run ldconfig
compile and install minc-2.0.18
run ldconfig
compile and install libtext-format-perl-0.52
compile and install libgetopt-tabular-perl-0.3
Ok so I compiled the versions you described of hdf5 and netcdf and it worked. Thing is I never found anything on the web for libtext and libgetopt. You have a link for those?

Quote:
You can use src2pkg to build and package all these very handily.
The --enable-minc2 option is deprecated (it's now the default)
Yeah I used src2pkg. Still, I would like one day to do my own building scripts. I find src2pkg is like cheating (= hehehe A real slacker should be able to do a script on his own from scratch. Still, thanks for the tip, cause it worked with src2pkg. Thanks also for letting me know --enable-minc2 is deprecated.

Cheers,
Dumdadum
 
Old 04-26-2010, 10:07 AM   #22
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Just serach for the perl stuff together with the word 'debian' and you'll find the sources -again src2pkg builds them fine. Learn to be a whiz at modifying src2pkg build scripts, when needed, and you'll have no need to be embarrased about using it... Besides, building a good package entails a lot more than just being able to write a good build script.
 
  


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
Good but sorta easy guide to Kernel compiling/Re-Compiling? linus72 Linux - General 1 07-13-2009 01:37 PM
Compiling a module separately without compiling entire kernel kushalkoolwal Linux - Kernel 8 08-06-2008 01:45 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 07:56 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

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

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

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