[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: I am having problems making and installing.



On Thu, 2008-10-02 at 23:23 -0400, Mike Jarabek wrote:
> > 4. The instructions say "Set the prefix= variable in the make file."
> >
> > I do not understand what that means. 
> > Do I have to edit the makefile in my /home/backup/Work/gEDA?
> > Or is "prefix=" part of the command with an argument?
> > and what should it be if I want to overwrite my existing 1.4.0
> version.
> >   
> Yes, that is the place to edit the variable.
> 
> In order to replace the installed version with the version you are 
> compiling, you will have to be root to install in the system shared 
> directories.  This is the trouble you ran into with the install step 
> complaining that it can't write.  You could try:
> 
> sudo make install
> 
> in the /home/backup/Work/gEDA directory.  This will prompt you for
> your 
> password, then it will be able to install in the system directories.
> If 
> you do this, it will overwrite the installed version from the package 
> manager, and you may end up with trouble later, if you try to use 
> Synaptic package manager to delete it or a dependency.
> 
> It would be best to remove the gEDA package from the system entirely, 
> (to avoid library mismatches) and edit the prefix variable in the top 
> level Makefile to point to your home directory, where you have write 
> access.  This will isntall gEDA outside of the package management 
> system, and safely in your home directory.
> 
> You may need to set the path and the LD_LIBRARY_PATH as the makefile 
> instructs you.

O.K. I am not very knowledgeable with Linux. So assume I know nothing
(which is not too far off.)

Based on your advice, I went into Synaptic Package Manager and removed
1.4.0 from my system.

I then went to makefile and changed 

prefix=/home/kip/geda 

I tried the command 

make

which I thought setup the path and LD_LIBRARY_PATH. According to 
http://www.geda.seul.org/developer.html 

which says 

Edit the toplevel Makefile to set the prefix to something other than the
default $HOME/geda if you so desire.

  * Type: make which will output the required environment variables
    (PATH, LD_LIBRARY_PATH, and PKG_CONFIG_PATH) that must be set before
    the next step. Set all required environment variables. NOTE: running
    make with no parameters will not build anything, but rather it just
    outputs environment variables that must be set. Not setting these
    environment variables will pretty much guarantee that gEDA/gaf will
    not build at all.

  * And finally type: make install 
  * 
Here was part of the response from the make:

---------------------------READ THIS---------------------------
Before executing any of the above targets, set the below shell
variables.  The build process _will fail_ if you do not set
these variables!  You will also need to set these variables to
run the programs.

gEDA/gaf will be installed into /home/kip/geda

For vanilla bourne shells:
LD_LIBRARY_PATH=/home/kip/geda/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
PATH=/home/kip/geda/bin:${PATH}
export PATH
PKG_CONFIG_PATH=/home/kip/geda/lib/pkgconfig:$PKG_CONFIG_PATH
export PKG_CONFIG_PATH

For bash:
export LD_LIBRARY_PATH=/home/kip/geda/lib:$LD_LIBRARY_PATH
export PATH=/home/kip/geda/bin:${PATH}
export PKG_CONFIG_PATH=/home/kip/geda/lib/pkgconfig:$PKG_CONFIG_PATH

For csh/tcsh shell:
setenv LD_LIBRARY_PATH /home/kip/geda/lib:$LD_LIBRARY_PATH
setenv PATH /home/kip/geda/bin:$PATH
setenv PKG_CONFIG_PATH /home/kip/geda/lib/pkgconfig:$PKG_CONFIG_PATH

---------------------------READ THIS---------------------------


When I typed "make install"


kip@red:/home/backup/Work/gEDA $ make install
( cd geda-symbols-1.4.1; make install )
make[1]: Entering directory `/home/backup/Work/gEDA/geda-symbols-1.4.1'
Making install in 4000
make[2]: Entering directory
`/home/backup/Work/gEDA/geda-symbols-1.4.1/4000'
make[3]: Entering directory
`/home/backup/Work/gEDA/geda-symbols-1.4.1/4000'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/gEDA/sym/4000" || /bin/mkdir -p
"/usr/local/share/gEDA/sym/4000"
/bin/mkdir: cannot create directory `/usr/local/share/gEDA': Permission
denied
make[3]: *** [install-data4000DATA] Error 1
make[3]: Leaving directory
`/home/backup/Work/gEDA/geda-symbols-1.4.1/4000'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory
`/home/backup/Work/gEDA/geda-symbols-1.4.1/4000'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/backup/Work/gEDA/geda-symbols-1.4.1'
make: *** [symbols_install] Error 2
kip@red:/home/backup/Work/gEDA $

It looks like it is still trying to put things into /usr/local/share

What is wrong?


==========================================

By the way. The page for
http://www.geda.seul.org/wiki/geda:gedasuite_installation

Says:

Finally, if the instructions here aren’t enough, David Hart has placed a
useful and detailed guide for configuring and installing gEDA (for
Fedora Core 4, but probably helpful with other distros too), as well as
a gEDA Tutorial for new users.

Neither link works.


Thanks,
Kip
-- 
Kipton Moravec AE5IB
"Always do right; this will gratify some people and astonish the rest."
--Mark Twain




_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user