LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 01-16-2007, 04:46 PM   #1
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
gEDA for Slackware?


Hi, I am new to compiling programs and trying to figure out how to get gEDA on my Slack11 machine.
I tried following this wiki: Howto/geda

I get this far:

Code:
$ rpm2tgz /home/geda/archive/rpms/*.rpm
$ cd /home/geda/src
$ tar xf /home/geda/archive/*.tgz
tar: /home/geda/archive/geda-examples-20061020-1.fc6.src.tgz: Not found in archive
tar: /home/geda/archive/geda-gattrib-20061020-1.fc6.src.tgz: Not found in archive
tar: /home/geda/archive/geda-gnetlist-20061020-1.fc6.src.tgz: Not found in archive
tar: /home/geda/archive/geda-gschem-20061020-1.fc6.src.tgz: Not found in archive
tar: /home/geda/archive/geda-gsymcheck-20061020-1.fc6.src.tgz: Not found in archive
tar: /home/geda/archive/geda-symbols-20061020-1.fc6.src.tgz: Not found in archive
tar: /home/geda/archive/geda-utils-20061020-1.fc6.src.tgz: Not found in archive
tar: /home/geda/archive/libgeda-20061020-1.fc6.src.tgz: Not found in archive
tar: Error exit delayed from previous errors
$
I have also tried this sequence as root, but same errors. I thought I had read something about rpm2tgz problems here but can't find the thread now.

I am hoping for some guidance on how to build this for slackware 11.0.

thanks!
 
Old 01-16-2007, 05:56 PM   #2
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 488
Blog Entries: 1

Rep: Reputation: 55
I know nothing about the gEDA program, but it appears to me that you have run rpm2tgz on the RPM files & are now trying to untar the resulting slackware packages. If you need to look at the structure of the package, use explodepkg. You should be able to install the packages you have produced with installpkg. I haven't used rpm2tgz a lot, but did use it a time or two to install OOo.
Regards,
Bill
 
Old 02-02-2007, 07:09 PM   #3
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
sorry for my delayed gratitude. You were correct, I should not have been trying to un-tar it again, but use installpkg. However it still did not work, ultimately I ended up compiling and installing from source, and gEDA is working now.

One remaining problem I'm having is adding some things to the PATH; I have to run these commands every time I want to use gEDA:
Code:
# export PATH=/usr/local/geda/bin:${PATH}
# export LD_LIBRARY_PATH=/usr/local/geda/lib:${LD_LIBRARY_PATH}
I did some reading and thought that if I added these commands to a /etc/profiles.d/geda.sh file it would automatically set my environment. I suppose I could just add them to rc.local but that seems a bit inappropriate.

Any advice there?

many thanks!
 
Old 02-03-2007, 06:38 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,726

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
I often just use a wrapper script for that.
1. Rename the binary to geda-bin
2. create a script called /usr/local/geda/bin/geda, with these lines:

#!/bin/bash
export PATH=/usr/local/geda/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/geda/lib:${LD_LIBRARY_PATH}
exec /usr/local/geda/bin/geda-bin
 
Old 02-03-2007, 07:05 AM   #5
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 488
Blog Entries: 1

Rep: Reputation: 55
Quote:
I did some reading and thought that if I added these commands to a /etc/profiles.d/geda.sh file it would automatically set my environment. I suppose I could just add them to rc.local but that seems a bit inappropriate.
You can do it either of the above ways & it will work. I would personally have more trouble remembering what I had put into rc.profiles, so that I could get it back if/when I rebuilt the system. You could also modify the PATH statement in /etc/profile. The only quirk that I might see with any of the above is that the path is set for all users of the machine although this may not be a problem. If it is a problem, you could use an if statement to only change it for your userid.
Regards,
Bill
 
Old 02-05-2007, 12:30 PM   #6
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
thanks for the help! its working now.

I am the only 'user' on this machine so I didn't mind adding it to /etc/profile.

is there any advantage to doing it either way?

Why set up a script? Is there troublesome overhead by adding a path to my /etc/profile?
 
Old 02-05-2007, 02:03 PM   #7
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 488
Blog Entries: 1

Rep: Reputation: 55
Quote:
Why set up a script? Is there troublesome overhead by adding a path to my /etc/profile?
I would set up a script just to keep from changing the Slackware setup scripts. (Having said that, I have to admit that I modify rc.6 & rc.S in order to do tasks at shutdown & startup.) I rather like gnashley's idea above. At least there all you do is start the prog normally.
There is no hassle with modifying rc.profile. You should save a copy or make some notes somewhere so that you can remember just what you did when you must redo it.
Regards,
Bill
 
Old 02-06-2007, 09:58 PM   #8
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 160

Rep: Reputation: 23
I got around that problem by configuring gEDA with "--prefix=/usr/local" before compiling. That way you don't have to worry about editing your PATH variables.
 
Old 02-07-2007, 12:25 AM   #9
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
That sounds like a good trick, but doesnt that make it harder to 'group' your programs.

well I am still pretty new to Linux so I don't feel too bad about just following the readme file for making geda.

another question- what is the /etc/profiles.d/* scripts for? I can't remember where I read it (random google page) but in my /etc/profiles.d there are a bunch of scripts.

thanks!
 
Old 02-07-2007, 01:54 AM   #10
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 160

Rep: Reputation: 23
Grouping your programs into their own directories is the Windows way of doing things and it's not necessary on Linux. Otherwise you would have to add directories to your PATH variable for every program you install. It's best to let the package manager worry about where files go, say, if you need to later remove or upgrade a program.


Inside /etc/profile you should find this chunk of code:
Code:
# Append any additional sh scripts found in /etc/profile.d/:
for profile_script in /etc/profile.d/*.sh ; do
  if [ -x $profile_script ]; then
    . $profile_script
  fi
done
unset profile_script
It sources all of the scripts inside /etc/profile.d, so they are run whenever /etc/profile is executed.
 
Old 02-08-2007, 02:09 AM   #11
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
illuminating, all... what a great community.

i guess my newbie is showing .. it seems when I went back to look for geda.sh it isnt there, I must have :q!'d instead of ZZ'd out of vi.

woops

still being ported over from windows thinking, and I'm not terribly clear on exactly how all the linux stuff works yet (i.e. package management etc)
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gEDA in linux Suse 10.1 marcoguillen Linux - Software 1 12-13-2006 07:00 AM
gEDA Install error in Fedora 5 dwurmfeld Fedora 3 06-30-2006 04:06 AM
gEDA Install Error secureoffice Linux - Software 0 10-31-2005 07:43 PM
Installing GEDA. hgb Suse/Novell 5 10-31-2005 11:11 AM
gEDA Installation Error secureoffice Suse/Novell 0 10-11-2005 10:01 AM


All times are GMT -5. The time now is 10:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration