SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My operating system is Slackware 15.0. The problem that I am having is this: When I try to compile FreeCAD 2.20.2 (and yes \ I modified the SlackBuild file for it), I end up with the following error:
Code:
./FreeCAD.SlackBuild: line 76: cd: FreeCAD-0.20.2: No such file or directory
even though that file IS in the FreeCAD sub-directory, and yes, I'm running the SlackBuild from within the FreeCAD sub-directory).
No hints on how to solve the compile problems, but after several attempts a while ago to get FreeCAD to compile on my Slackware 15.0 installation I gave up and downloaded the AppImage. That works for me.
Probably a problem with the archives directory structure. My guess is when it's extracted the Slackbuild wants to change the directory that's named differently than what was created at extraction. $PRGNAM-$VERSION might not be the right place.
Compared to the 0.19.2 source file on slackbuilds there does appear to be a couple of directory changes so there may or may not be issues building it via the default slackbuild script
I have successfully built 20.2
downloaded from
'https://github.com/FreeCAD/FreeCAD/archive/refs/tags/0.20.2.tar.gz'
All I changed in the SlackBuild was remove the -DBUILD_ENABLE_CXX_STD=C++14
didn't replace it with anything, called with VERSION=0.20.2 sh FreeCAD.Slackbuild
HTH
Last edited by mickski56; 04-03-2023 at 03:06 PM.
Reason: show url in full
No hints on how to solve the compile problems, but after several attempts a while ago to get FreeCAD to compile on my Slackware 15.0 installation I gave up and downloaded the AppImage. That works for me.
I've been doing that too. The SlackBuild worked fine for me the last time I tried it, but it brings in a lot of dependencies and is just a lot less convenient.
Perhaps this part of the output that I have been getting will help to understand the problem that I have encountered:
Code:
FreeCAD-FreeCAD-930dd9a/vagrant/etc/matplotlibrc
FreeCAD-FreeCAD-930dd9a/vagrant/fontconfig/
FreeCAD-FreeCAD-930dd9a/vagrant/fontconfig/fonts.conf
FreeCAD-FreeCAD-930dd9a/vagrant/generate_yaml.sh
./FreeCAD.SlackBuild: line 76: cd: FreeCAD-0.20.2: No such file or directory
root@Galifrey:~/FreeCAD#
Sometimes, it's solved with adding something like "$SRCNAM" in this case $SRCNAM should equal FreeCAD-930dd9a or FreeCAD-FreeCAD-930dd9a
Then in line 76 where it says $PRGNAM-$VERSION you could do $PRGNAM-$SRCNAM or just $SRCNAM instead, depending on how it's defined on top.
This happens when suddenly the upstream decide to use other names for directories, and SlackBuild tries to cd into $PRGNAM-$VERSION
Edit; If there already is one $SRCNAM you may have to add $SRCNAM2 or similar. I haven't read the actual SlackBuild.
Perhaps this part of the output that I have been getting will help to understand the problem that I have encountered:
Code:
FreeCAD-FreeCAD-930dd9a/vagrant/etc/matplotlibrc
FreeCAD-FreeCAD-930dd9a/vagrant/fontconfig/
FreeCAD-FreeCAD-930dd9a/vagrant/fontconfig/fonts.conf
FreeCAD-FreeCAD-930dd9a/vagrant/generate_yaml.sh
./FreeCAD.SlackBuild: line 76: cd: FreeCAD-0.20.2: No such file or directory
root@Galifrey:~/FreeCAD#
The source tarball you extracted is called "FreeCAD-FreeCAD-930dd9a". Line 76 of the slackbuild is "cd $PRGNAM-$VERSION", and your tar archive doesn't match that naming convention. I dont know where you downloaded the source from but its not in the same format as expected. Using the following will get you the proper source tarball that matches the slackbuild script.
I tried that command, and got a "command not found" error message. So I Copied just the link and pasted that into my browser, then I transferred that file into the FreeCAD sub directory and ran the FreeCAD.SlackBuild file where it compiled successfully.
And I originally downloaded the source code from Sourceforge.net.
Last edited by TheNutCase; 04-03-2023 at 03:15 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.