EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: installing synApps on Ubuntu
From: "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov>
To: Randall Cayford <rcayford at lbl.gov>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Thu, 20 Aug 2020 18:12:45 +0000
Hi Randall,

On Aug 20, 2020, at 12:52 PM, Randall Cayford via Tech-talk <tech-talk at aps.anl.gov> wrote:

I found the problem.  The defaults for tar on centos 7 and Ubuntu 18 are different.  On centos, untaring synApps assigns the user who untars.  On Ubuntu (at least with the parameters I used) the assigned user appears to be the uid and gid of whoever created it.  I don’t know why compiling as root has a problem with this but the depends.pl script hangs in that case.  chown fixed the problem.

It seems to be accepted wisdom nowadays to *never* compile code as root, please do that as a regular user. By using root you are trusting that nobody who has write access to your compiler, linker, GNUmake, the application build system and any tools that it might use (including all the EPICS and synapps developers) has let in some malicious code that looks to see if it’s being run as root and tries to then turn your machine into a bot. Not recommended.

I have mostly successfully compiled synApps on Ubuntu now.  The dxp module won’t compile over some problem with finding functions in what appears to be libusb.  That one I haven’t solved.

As pointed out recently in a different thread, there are two different libusb APIs with different versions, if the code looks for libusb-1.0 make sure you have that and not the other one.

- Andrew

-- 
Complexity comes for free, simplicity you have to work for.


References:
installing synApps on Ubuntu Randall Cayford via Tech-talk
Re: installing synApps on Ubuntu Michael Davidsaver via Tech-talk
Re: installing synApps on Ubuntu Randall Cayford via Tech-talk

Navigate by Date:
Prev: Re: installing synApps on Ubuntu Randall Cayford via Tech-talk
Next: Re: accepting channel name drops in Qt from MEDM [SEC=UNOFFICIAL] Thomas, Patrick via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: installing synApps on Ubuntu Randall Cayford via Tech-talk
Next: Re: installing synApps on Ubuntu Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 20 Aug 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·