Thanks Helio,

I'll concentrate on Allin's code and then get to yours after!

Clive

On 26 October 2015 at 00:59, Hélio Guilherme <helioxentric@gmail.com> wrote:
Hi Clive,

Let me try to help you and give a break to Allin ;).

To summarize, you only need (should) use sudo to install gretl.
Now since you previously used sudo to grab files from git and compile, there is the need to clean up those.
One option is to do the git cloning in a different directory, and configure, make and sudo make install, from there.

The other option goes to repair the files' attributes, like this:
clive@clivubu:~/gretl-git$ sudo chown -R clive:clive *
# the root user is changing ownership user:group to clive:clive (it could be clive:users I think)
# now you own the files no more need for sudo until installation
# next steps are:
clive@clivubu:~/gretl-git$ make clean
clive@clivubu:~/gretl-git$ git pull origin master
clive@clivubu:~/gretl-git$ ./configure --prefix=/usr/local --enable-quiet-build --enable-openmp --enable-build-doc
clive@clivubu:~/gretl-git$ make
clive@clivubu:~/gretl-git$ make pdfdocs
clive@clivubu:~/gretl-git$ sudo make install

# you may save your configure command (and other make commands) in a shellscript, like this
clive@clivubu:~/gretl-git$ echo ./configure --prefix=/usr/local --enable-quiet-build --enable-openmp --enable-build-doc >conf.sh
clive@clivubu:~/gretl-git$ chmod +x conf.sh
# you run then
clive@clivubu:~/gretl-git$ ./conf.sh







On Mon, Oct 26, 2015 at 12:29 AM, Clive Nicholas <clivelists@googlemail.com> wrote:
Okay, after I do this, successfully:

clive@clivubu:~/gretl-git$ sudo git clone ssh://stonebridgespur@git.code.sf.net/p/gretl/git gretl-git  
[sudo] password for clive:
Cloning into 'gretl-git'...
Password:
remote: Counting objects: 137418, done.
remote: Compressing objects: 100% (30143/30143), done.
remote: Total 137418 (delta 109830), reused 134008 (delta 106823)
Receiving objects: 100% (137418/137418), 172.73 MiB | 713.00 KiB/s, done.
Resolving deltas: 100% (109830/109830), done.
Checking connectivity... done.

I get this:

clive@clivubu:~/gretl-git$ ./configure --prefix=/usr/local --enable-quiet-build --enable-openmp --enable-build-doc
./configure: line 2338: config.log: Permission denied
./configure: line 2348: config.log: Permission denied

Which is why I have to run:

clive@clivubu:~/gretl-git$ sudo ./configure --prefix=/usr/local --enable-quiet-build --enable-openmp --enable-build-doc

[...]

Configuration:

  Installation path:                      /usr/local
  Use readline library:                   yes
  Use gnuplot for graphs:                 yes
  Use pdflatex for typesetting:           yes
  Use libgsf for zip/unzip:               no
  MPFR support:                           yes
  sse2 support for RNG:                   yes
  OpenMP support:                         yes
  MPI support:                            no
  AVX support for arithmetic:             yes
  Build with GTK version:                 2.0
  Build gretl documentation:              yes
  Use Lucida fonts:                       no
  Build message catalogs:                 yes
  Build gretl addons:                     no
  X-12-ARIMA support:                     yes
  TRAMO/SEATS support:                    yes
  libR support:                           yes
  ODBC support:                           no
  JSON parsing support:                   yes
  Experimental audio support:             no
  Use xdg-utils in installation:          if DESTDIR not set

  LAPACK libraries:
    -llapack -lblas -lgfortran

Now type 'make' to build gretl.
You can also do 'make pdfdocs' to build the PDF documentation.

And then...

clive@clivubu:~/gretl-git$ make
./builddate
Can't write to build.h
Makefile:103: recipe for target 'buildstamp' failed
make: *** [buildstamp] Error 1

I hope that makes things clearer.

Clive


On 25 October 2015 at 23:57, Clive Nicholas <clivelists@googlemail.com> wrote:
Allin,

Okay, thanks for your advice. The only thing is is that I've never built -gretl- from -git- as I've never needed to. Remember, I was only following the suggested steps Jack gave me!

Clive

On 25 October 2015 at 23:21, Allin Cottrell <cottrell@wfu.edu> wrote:
On Sun, 25 Oct 2015, Clive Nicholas wrote:

Allin,

I didn't add it because it still generate errors!

clive@clivubu:~/gretl-2015d$ ./configure --prefix=/usr/local
--enable-quiet-build --enable-openmp --enable-build-doc

Clive, we (Oleh and I) are telling you: (a) "make pdfdocs" will not work unless you have given the option --enable-build-doc to the configure script, but (b) the latter option is valid only when you are building from the git source, and not with a regular release source package such as gretl-2015d.tar.xz.

In other words, if you want to build the docs you _must_ use the git source and you _must_ add --enable-build-doc when configuring. In addition you _must not_ invoke "sudo" when doing "git pull" or running the configure script.


Allin




_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users



--
Clive Nicholas

"My colleagues in the social sciences talk a great deal about methodology. I prefer to call it style." -- Freeman J. Dyson



--
Clive Nicholas

"My colleagues in the social sciences talk a great deal about methodology. I prefer to call it style." -- Freeman J. Dyson

_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users


_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users



--
Clive Nicholas

"My colleagues in the social sciences talk a great deal about methodology. I prefer to call it style." -- Freeman J. Dyson