Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

howto use configure --program-prefix="l" #11

Closed
vnijs opened this issue Feb 8, 2015 · 19 comments
Closed

howto use configure --program-prefix="l" #11

vnijs opened this issue Feb 8, 2015 · 19 comments

Comments

@vnijs
Copy link

vnijs commented Feb 8, 2015

I would like to try out littler on a mac

There is no script called configure in the littler repo so I am not sure how to do:

./configure --program-prefix="l"

What am I missing? Thanks

@eddelbuettel
Copy link
Owner

Case One: You work from git

The script configure is created by running the script bootstrap which contains towards the bottom:

test -f gitversion.h || call_gitversion
aclocal 
autoheader 
automake 
autoconf 
./configure 
make

You could either modify bootstrap to add the arguments you want, or re-run after it create the r you do not want.

Case Two: You work from a release tarball

The tarball contains configure.

See file INSTALL

This is all detailed in INSTALL -- but do let me know if something is missing etc.

@vnijs
Copy link
Author

vnijs commented Feb 8, 2015

Thank you for the pointer to the INSTALL file. I was following the instructions in the README.md file but misunderstood the reference to bootstrap. I tried updating the ./configure line in bootstrap and rerunning ./configure after bootstrap (followed by make). Both produced r in the littler directory but not the alternatively named version. I also tried using a suffix but no luck.

@eddelbuettel
Copy link
Owner

Ok -- let me know how it goes, and how I could make it better.

I definitely wants this to work on OS X given the usual joke.

@vnijs
Copy link
Author

vnijs commented Feb 8, 2015

It doesn't (go). But then I am on a mac :) See previous comment. I cannot get the ./configure options (followed by make) to produce lr, littler or any other name. I tried with "" around the prefix (as suggested in the README) and without quotes (as suggested in INSTALL). Configure does update the Makefile with information about the name to use for the build but doesn't seem to use it. I am assuming there should be a file in littler/ with the name myprenamer but there is only r

program_transform_name = s&$$&mypostname&
program_transform_name = s&^&myprename&

I just tried compiling from source on unbuntu with the same result (i.e., prefix is ignored). Any suggestions would be welcome. Thanks

On a side note ... If 'datascience is statistics on a mac' what is datascience on windows?

@eddelbuettel
Copy link
Owner

Darn. It did work an some point. I may have reworked the autotools logic after that.

I'll reopen and leave it open.

@eddelbuettel eddelbuettel reopened this Feb 8, 2015
@eddelbuettel
Copy link
Owner

As a start, can you build locally, and just install the result r as /usr/local/bin/lr (or some other name)?

@eddelbuettel
Copy link
Owner

I always get confused by this. Follow the Makefile, the business about transform happens only when you run make install. So please try that.

@vnijs
Copy link
Author

vnijs commented Feb 8, 2015

It works! I was hesitant to use make install because it wasn't clear to me if it might mess-up the regular R install. make install did use the name prefix however to create lr. Nice.

I tried brew install littler on my office machine (Mavericks) but got a message there was no formula. On my laptop (Yosemite) it did find one however and it installed as littler. I added a shortcut to lr for convenience. Perhaps you would consider mentioning the brew option for mac users in the install instructions?

Thanks!

@eddelbuettel
Copy link
Owner

Glad to know it works.

I have no interaction with whoever coordinates the brew builds. Maybe you could follow up?

I'll leave with open as a reminder to stress make install as a finishing step.

@eddelbuettel
Copy link
Owner

Ok, pushed another commit with a comment on this. The (very old) README (ie not the .md variant) also had it. So closing this now :)

@vnijs
Copy link
Author

vnijs commented Feb 8, 2015

Thanks Dirk. I will try to figure out what is going on with the brew setup.


Sent from Mailbox

On Sun, Feb 8, 2015 at 3:12 PM, Dirk Eddelbuettel
notifications@github.com wrote:

Closed #11.

Reply to this email directly or view it on GitHub:
#11 (comment)

@vnijs
Copy link
Author

vnijs commented Feb 10, 2015

Got littler installed on my office mac as well. It seem you need to add a repo to find the formula for littler. The following should work:

brew tap homebrew/science
brew install littler

This will install littler as littler to avoid problems with r and R

For more information on brew: http://brew.sh/

@eddelbuettel
Copy link
Owner

Thank you for this. I may add this to the docs.

It was my understanding, though, that the overall recommendation was to not use R from brew, but rather rely on Simon's packages from the ATT site. Which R is this littler binary built against?

@vnijs
Copy link
Author

vnijs commented Feb 10, 2015

Yeah I think this might not be a good idea at the moment. Both on my laptop and on desktop Rstudio has stopped working. Not sure it is driven by the install but could be. Will keep you posted.

@vnijs
Copy link
Author

vnijs commented Feb 11, 2015

I hadn’t even noticed that brew installed R when it installed littler. I removed the brewed version of R and now Rstudio works again. It seems that using brew for littler may not be a good solution at this point for most mac users. I am installing R and R-gui through brew now and it seems to work with Rstudio as well. That may still be too much work however.

@vnijs
Copy link
Author

vnijs commented Feb 23, 2015

The answer seems to be:

brew tap homebrew/science
brew install littler

they don’t have brew installed yet they can go here: http://brew.sh/

@eddelbuettel
Copy link
Owner

Thanks for the update.

@rkrug
Copy link

rkrug commented Jun 4, 2018

It seems that littler has disappeared from homebrew - any alternative way to install it?

@rkrug
Copy link

rkrug commented Jun 4, 2018

I just found the package "littler" - installed it, linked the binary and it is working.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants