LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-23-2013, 12:28 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware14.2 64-Bit Desktop, Devuan 2.0 ASCII Toshiba Satellite Notebook
Posts: 2,669

Rep: Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727
Smile Blender 2.63 only runs if I type /opt/blender/blender in cmdline


Built blender from slackbuilds, but only way to run it is through cmdline.

Code:
/opt/blender/blender
Code:
slackuser@slackmachine:/var/log$ /opt/blender/blender
connect failed: No such file or directory
ndof: spacenavd not found
found bundled python: /opt/blender/2.63/python
It still launches, but I just want to run blender without doing this all the time.

No shortcuts created or anything, can't even run it if I try to type 'blender' in the run field in lxde.. So what gives?

/sbin/ldconfig doesn't do anything either...

So how can I run blender 'normally?'
 
Old 07-23-2013, 12:37 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
When you installed blender, there should be a file in /etc/profile.d (actually two files), blender.sh and blender.csh. Look to see if /etc/profile.d/blender.sh is executable; if not, as root (or su -)
Code:
chmod 755 /etc/profile.d/blender.sh
chmod 755 /etc/profile.d/blender.csh
log out, log back in and try it.

Those two files should have been installed when you excecuted
Code:
installpkg [path_to]/blender-version.txz
Hope this helps some.
 
Old 07-23-2013, 01:05 PM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware14.2 64-Bit Desktop, Devuan 2.0 ASCII Toshiba Satellite Notebook
Posts: 2,669

Original Poster
Rep: Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727
Thumbs up Now if only it would put entries in automatically.

Quote:
Originally Posted by tronayne View Post
When you installed blender, there should be a file in /etc/profile.d (actually two files), blender.sh and blender.csh. Look to see if /etc/profile.d/blender.sh is executable; if not, as root (or su -)
Code:
chmod 755 /etc/profile.d/blender.sh
chmod 755 /etc/profile.d/blender.csh
log out, log back in and try it.
That was it! Thank you. Maybe the slackbuild needs to be modified to have that step. Considered matter 'solved', but now just a few minor details:

Not that it really matters but after launching blender I expected some kind of .blender directory in my home folder and found none, also no entries in any of these categories... Hmmmmm

Click image for larger version

Name:	desktop2.jpeg
Views:	21
Size:	100.6 KB
ID:	13042Click image for larger version

Name:	desktop3.jpeg
Views:	16
Size:	101.4 KB
ID:	13043Click image for larger version

Name:	desktop4.jpeg
Views:	16
Size:	109.3 KB
ID:	13044
 
Old 07-23-2013, 01:27 PM   #4
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 503

Rep: Reputation: Disabled
It doesn't work the way you want it to because /opt/blender isn't in your PATH environment variable. That' all that the blender.sh and blender.csh basically does (puts it in your PATH).
 
Old 07-23-2013, 01:45 PM   #5
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware14.2 64-Bit Desktop, Devuan 2.0 ASCII Toshiba Satellite Notebook
Posts: 2,669

Original Poster
Rep: Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727
Quote:
Originally Posted by TommyC7 View Post
It doesn't work the way you want it to because /opt/blender isn't in your PATH environment variable. That' all that the blender.sh and blender.csh basically does (puts it in your PATH).
Oh... I found an icon setup in /usr/share/applications and I copied that to to the desktop and works that way... Hmm, so it seems to be that the slackbuild is not quite complete.

chmod 755 /etc/profile.d/blender.csh
chmod 755 /etc/profile.d/blender.sh

Should obviously be there when the script installs the program, and it doesn't automatically place entries anywhere for you to launch, you have to hunt for it yourself.
 
Old 07-23-2013, 04:18 PM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
Um, I did go to SlackBuilds.org, downloaded the source package and the SlackBuild (blender-2.63a-linux-glibc27-x86_64.tar.bz2 and blender.tar.gz) and did
Code:
cd /usr/local/packages/src/graphics
tar xzvf blender.tar.gz
<said file was not in gzip format, so...>
tar xvf blender.tar.gz
<success!>
<wrote a note to Robby Workman about that>
cd blender
mv blender-2.63a-linux-glibc27-x86_64.tar.bz2 .
blender.SlackBuild
<wait a while>
mv /tmp/blender-2.63a-x86_64-1_SBo.tgz .
installpkg blender-2.63a-x86_64-1_SBo.tgz
log out -- shuts down Xfce
log out -- exit from the console
log in -- log back in to the console
startx -- start Xfce
blender
and viola! there it was.

So, the SlackeBuild did install blender.sh and blender.csh in /etc/profile.d and there were executable (I sneaked a look) and what /etc/profile.d/blender.sh does, when you log in, is
Code:
cat /etc/profile.d/blender.sh
#!/bin/sh
export PATH="${PATH}:/opt/blender"
which puts blender on your PATH.

Now, I don't know if it's exactly set up correctly; I get the following when I exit from it:
Code:
connect failed: No such file or directory
ndof: spacenavd not found
found bundled python: /opt/blender/2.63/python

Blender quit
but it appears to work initially and there might be some set up stuff I've missed (and I've never used it and haven't a clue what to do with it but does seem to work).

Hope this helps some.

Last edited by tronayne; 07-24-2013 at 07:14 AM.
 
Old 07-23-2013, 05:00 PM   #7
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware14.2 64-Bit Desktop, Devuan 2.0 ASCII Toshiba Satellite Notebook
Posts: 2,669

Original Poster
Rep: Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727
Weird... The files ARE there yes, but the script didn't make .csh and .sh files executable, I had to do that manually on my end. I don't know what I did differently than you, just unpacked the slackbuild and ran it.. But just for kicks I also ran it in cmdline and got the same thing you did...

Code:
slackuser@slackmachine:~$ blender
connect failed: No such file or directory
ndof: spacenavd not found
found bundled python: /opt/blender/2.63/python

Blender quit
slackuser@slackmachine:~$
Overall it works though...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Getting Your Feet Wet with Blender: A Short Guide to Understanding Blender LXer Syndicated Linux News 0 02-16-2011 01:11 PM
LXer: 12 Unique Blender Tutorials Every Blender Enthusiast Should Know Of LXer Syndicated Linux News 0 10-06-2010 07:42 PM
Intalled Blender, runs OK but no menus visible BobNutfield Slackware 8 02-09-2010 02:59 PM
LXer: The Essential Blender: Guide to 3D Creation with the Open Source Suite Blender LXer Syndicated Linux News 0 11-23-2007 11:00 AM
Blender problem: can't run Blender, anyone know how? Chuong Linux - Software 11 09-01-2006 08:54 AM

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

All times are GMT -5. The time now is 02:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration