How do I install blender on a linux box?

General discussion about the development of the open source Blender

Moderators: jesterKing, stiv

Post Reply
Feztaa
Posts: 0
Joined: Sun Jan 19, 2003 6:19 am

How do I install blender on a linux box?

Post by Feztaa » Sun Jan 19, 2003 6:43 am

Hello everybody,

A long time ago, I used to have fun fiddling around with blender. I didn't have a lick of talent, but it was fun anyway.

Recently, my interest in blender has resurfaced, and I'm eager to start playing with it again. I've seen a lot of posts on the forums here that say the current sources don't compile for whatever reason, and that they're broken.

That's too bad, but I don't have anything against using the precompiled binaries, so I thought I'd try to use those.

The first time I ran blender, I got this error:

Code: Select all

$ ./blenderpublisher 
./blenderpublisher: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
So then I symlinked /usr/lib/libstdc++-libc6.1-1.so.2 to /usr/lib/libstdc++.so.5.0.0 in the hopes that it might help, and I got this error:

Code: Select all

$ ./blenderpublisher 
./blenderpublisher: relocation error: ./blenderpublisher: undefined symbol: cerr
I suppose that's to be expected, though, as that's probably not the library that it's looking for...

At any rate: What's a guy gotta do to get blender running on linux? Is it possible to get my hands on a statically linked version?

If this information helps at all, here it is:

Code: Select all

$ /lib/libc.so.6
GNU C Library stable release version 2.2.5, by Roland McGrath et al.
Copyright (C) 1992-2001, 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.2.
Compiled on a Linux 2.4.20 system on 2002-12-23.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.9 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@gnu.org>.
Thanks in advance ;)

SirDude
Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Post by SirDude » Sun Jan 19, 2003 9:38 am

Its really not that hard to compile for linux. Download the latest source
take a look at the readme in the root directory and if you
have problems jump on #blendersauce on irc or post your problems here.

basically if there is something your having problems with its something that needs to
be fixed, quite a few people have gotten it to compile under linux now.

Note there are two methods to compile don't confuse the two. (The old makefile system
and the autoconf system. The autoconf system is newer and not as well developed, try
both systems and let us know what doesn't work for you)

Feztaa
Posts: 0
Joined: Sun Jan 19, 2003 6:19 am

Post by Feztaa » Sun Jan 19, 2003 10:29 am

Uh?

Code: Select all

/usr/src/blender$ ls
CVS  intern  projectfiles  source
I don't see any makefiles. The "intern" and "source" directories have makefiles, but they're broken:

Code: Select all

/usr/src/blender/intern$ make
Makefile:38: nan_subdirs.mk: No such file or directory
make: *** No rule to make target `nan_subdirs.mk'.  Stop.

Code: Select all

/usr/src/blender/source$ make
make: /home/feztaa/develop/source/tools/guess/guessconfig: Command not found
make: /home/feztaa/develop/source/tools/guess/guessconfig: Command not found
make: /home/feztaa/develop/source/tools/guess/guessconfig: Command not found
****> Make all by @ at 02:31:33 19-Jan-2003 on 
mkdir: cannot create directory `/home/feztaa/develop/lib': No such file or directory
make: *** [all] Error 1
Sorry, I just don't understand what I'm supposed to do here.

sgefant
Posts: 30
Joined: Wed Oct 16, 2002 1:10 am

Post by sgefant » Sun Jan 19, 2003 1:51 pm

I think SirDude was referring to the daily CVS checkouts you can download from the CVS page which is accessible by clicking on the CVS link to the left.

Regarding your libstdc++ problems: what distribution are you using?

sgefant

Feztaa
Posts: 0
Joined: Sun Jan 19, 2003 6:19 am

Post by Feztaa » Sun Jan 19, 2003 9:27 pm

Ah, CVS! ;)

Ok, that's downloaded. I don't have much time right now, but I'll play with that for a while, and see if I can get it to compile. Thanks!

(as for my distro, it's something I hacked together myself: Linux From Scratch)

gloume
Posts: 0
Joined: Tue Jan 28, 2003 1:44 am
Contact:

Post by gloume » Tue Jan 28, 2003 1:52 am

I had this same error when I tried the precompiled binaries. And wouldn't you know, I just happend to be using LFS too! So I ran it by the folks in #LFS on irc.linuxfromscratch.org and they reminded me that the newest LFS book(4.0) uses gcc3.2 which is binary incompatible with 2.95.blah, which the binaries were compiled against. The End.

Feztaa
Posts: 0
Joined: Sun Jan 19, 2003 6:19 am

Post by Feztaa » Tue Jan 28, 2003 5:07 am

Yeah, that's too bad. I'm looking at the cvs code, and there's an assload of dependencies. Hopefully they're not *all* needed, because it looks like it wants me to install like 3 seperate sound libraries (what's wrong with OSS, exactly?). The kicker there is that I don't even care about sound, I just want to make 3d images ;)

Anyway, I'm a busy university student, it'll be a little while before I get to look at this in any depth, unfortunately.

Sanne
Posts: 0
Joined: Tue Jan 28, 2003 9:24 pm

Post by Sanne » Tue Jan 28, 2003 9:44 pm

Hi Feztaa,

I recently had a similar experience with Blender and Linux, and I found a solution, maybe it helps you also.

I'm a very new Debian 3.0 (Woody) user and downloaded the Blender package in the stable tree, that's Blender 2.23-0.1. Installed an ran it and got the same error as you:

Code: Select all

$ error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
I found that I had a later version of that library on my system, but not the one Blender needs. I also found that this older lib is contained in the package libstdc++2.9-glibc2.1. Installed it and now have both libs on my system, and Blender works beautifully :).

Hopefully this helps you with your Linux distro as well.

Sanne

Post Reply