3 problems (or more) [solved]

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: 3 problems (or more)

Post by gapan »

Run

Code: Select all

sh /etc/cron.daily/housekeeping
That's a script that is used to update these kind of stuff, but it probably hasn't run yet.
Image
Image
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: 3 problems (or more)

Post by Oracle911 »

Thank you Gapan it worked, after i became root.

Shador you are not any body (i made a typo, i meant anybody) ;)

So, I`m still asking for help, who can give me a advice with the remaining 2 problems?
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: 3 problems (or more)

Post by Oracle911 »

So, i downloaded Freecad for Slackware, and i looked on help.
But i don`t know which method should use from this site: http://sourceforge.net/apps/mediawiki/f ... ll_on_Unix
Or can you give step by step instructions, because i downloaded it and copied it to my desktop?
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: 3 problems (or more)

Post by Shador »

At least I can spend my time better than writing step-to-step guides for problems which are far too common to write on for each an every case (installing packages is such a problem). So: http://www.slackbook.org/

Edit:
And read up on slapt-src:

Code: Select all

# slapt-src -search freecad
FreeCAD:0.9.2646 - FreeCAD (General purpose 3D CAD modeler)
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: 3 problems (or more)

Post by mimosa »

It's available as a slackbuild. The first thing to check for any app is whether it is in the repos (Gslapt/slapt-get) and the second is Sourcery/slapt-src

Code: Select all

vanilla[~]$ su
Password:
root[vanilla]# slapt-get --search freecad
root[vanilla]# slapt-src --search freecad
FreeCAD:0.11.3729 - FreeCAD (General purpose 3D CAD modeler)
root[vanilla]# 

Another way of checking the latter is to look on http://slackbuilds.org. I find this easier to look around for what's there and look at the files.

So, read the README file and check for dependencies. If they are not installed, you need to install them first, or the freecad installation will fail. The deps in turn may have subdependencies.
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: 3 problems (or more)

Post by laprjns »

Oracle911 wrote:Or can you give step by step instructions,.....
Since FreeCAD is available on Slackbuids and your going to need to install a number of dependencies that are also only available on Slackbuids, I suggest using slapt-src (or sourcery). Here's a step by step for slapt-src:

Edit #1 - ftgl is a dependancy for OpenCASCAD so I added it to the slapt-get command in step 2
Edit #2 - need to update both slapt-get in Step 2 and slapt-src in Sept 3
Editt #3 Need to add dependancies boost and gcc-gfortran to step # 2 (as pointed out by mimosa


1) First open a terminal and become root, your prompt should like something like this:

Code: Select all

root[sjobs]#
Mine looks something like this

Code: Select all

root[Woz]#
(sorry I couldn't resist :mrgreen: )

2) First check with slapt-get for available of Salix packages for any of the dependance. In this case there are two available, xerces-c and swig, so do this:

Code: Select all

root[rich]#slapt-get --update
root[rich]#slapt-get -i xerces-c swig ftgl boost gcc-gfortran
3) Next use slapt-src to build and install all the other needed dependancies;

Code: Select all

root[rich]#slapt-src --update
root[rich]#slapt-src -i Coin SoQt Pivy OpenCASCADE gl2ps
Note that gl2ps is optional

4) Now finally build and install FreeCAD with slapt-src:

Code: Select all

root[rich]# slapt-src -i FreeCAD
Depending on your machine this is going to take some time to build; especially OpenCASCADE. I'm going through this now and haven't made it through OpenCASADE yet, so if run into any problems, I'll update the post.
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: 3 problems (or more)

Post by Oracle911 »

after step 3, it failed it says:

Code: Select all

root[rich]# slapt-src -i Coin SoQt Pivy OpenCASCADE gl2ps
Failed to open slackbuilds_data for reading
Unable to find all specified slackbuilds.
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: 3 problems (or more)

Post by laprjns »

You need to update slapt-src first. Do this

Code: Select all

root[rich]#slapt-src --update
I've update my earlier post with this. Also see Edit #1, I found another dependency for OpenCASCADE
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: 3 problems (or more)

Post by mimosa »

I've been having a go at this too, and found I needed libboost and gcc-fortran as well. Also, an error message suggests eigen2 is needed for some of freecad's functionality, so it might be an idea to install this before building it.

This may all seem like -well - sourcery :) But it's generally quite straightforward to work out what's missing from the eror messages, then see if you can find it first in the repos then as a slackbuild. Sometimes it's slightly different: for instance libboost appears not to be in the repos, until you search for just "boost".

So it's just a certain amount of brute trial and error, laborious but generally trivial. I was curious to try this because my daughter's training to be an architect, and that seems to be one area where everyone is tied in to a certain closed-source commercial application. I'll ask her to put FreeCAD through its paces!

Another thing is that it installs to /opt/FreeCAD/bin, which of course isn't in my $PATH. Or at least, it did when I cheated and downloaded the precompiled binaries from the packager's website! I'm just building the SlackBuild now, and if it does the same, the following applies.

Here are some instructions about how to add a directory to the $PATH (where Linux expects apps to be):

http://everyjoe.com/technology/howto-ad ... tvariable/

but you can just call it with the whole path:

/opt/FreeCAD/bin/FreeCAD

which is what you'd need any launcher to point to, too.
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: 3 problems (or more)

Post by Oracle911 »

What is meaning of this:

Code: Select all

pivy/coin_wrap.cpp:244719:23: warning: the address of ‘time_t time(time_t*)’ will never be NULL
and this:

Code: Select all

configure: error: Fortran could not compile .f files
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
Post Reply