Giter VIP home page Giter VIP logo

Comments (10)

sjackman avatar sjackman commented on May 24, 2024

I don't see the actual error message in the text that you've included, which is the standard boiler-plate text for a keg-only install.

from legacy-linuxbrew.

mistydemeo avatar mistydemeo commented on May 24, 2024

Can you provide the full logs in a gist?

svn is not keg-only - @sjackman, do you know why that would print?

from legacy-linuxbrew.

sjackman avatar sjackman commented on May 24, 2024

I believe if symlinking fails, that message will print.

from legacy-linuxbrew.

sjackman avatar sjackman commented on May 24, 2024

For example, if SVN is already installed in /usr/local outside of Homebrew.

from legacy-linuxbrew.

jacknagel avatar jacknagel commented on May 24, 2024

That text comes from libtool, not Homebrew.

from legacy-linuxbrew.

sjackman avatar sjackman commented on May 24, 2024

Ah, thanks for clearing that up, Jack.

from legacy-linuxbrew.

tokiloki avatar tokiloki commented on May 24, 2024

For brew install svn at first I get this error

==> Installing subversion dependency: serf
==> Downloading http://serf.googlecode.com/files/serf-1.2.1.tar.bz2
######################################################################## 100,0%
==> ./configure --prefix=/home/vv/linuxbrew/Cellar/serf/1.2.1 --with-apr=/usr/bin
checking target system type... i686-pc-linux-gnu

Configuring Apache Portable Runtime library...

checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a     build directory, or an apr-config file.

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

These open issues may also help:
    https://github.com/mxcl/homebrew/pull/21427
    https://github.com/mxcl/homebrew/pull/21449

Which can be fixed by

diff --git a/Library/Formula/serf.rb b/Library/Formula/serf.rb
index 2eea834..3d9bfc1 100644
--- a/Library/Formula/serf.rb
+++ b/Library/Formula/serf.rb
@@ -10,8 +10,13 @@ class Serf < Formula
   depends_on :libtool
   depends_on 'sqlite'

+  if not MACOS
+    depends_on 'apr'
+    depends_on 'apr-util'
+  end
+
   def apr_bin
-    superbin or "/usr/bin"
+    superbin or Formula.factory('apr').opt_prefix
   end

   def install

Another problem is fixed here Homebrew/legacy-homebrew@db1f06f#Library/Formula/subversion.rb

Then problem is

==> ./configure --prefix=/home/vv/linuxbrew/Cellar/subversion/1.8.0 --with-apr=/usr/bin --with-zlib=/usr --with-    sqlite=/home/vv/linuxbrew/opt/sqlite --with-serf=/home/vv/linuxbrew/opt/serf --di
checking for egrep... /bin/grep -E
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: Apache Portable Runtime (APR) library configuration
checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.

which is fixed by

diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index 53020a2..acaa8d1 100644
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -53,7 +53,7 @@ class Subversion < Formula
   end if (build.include? 'perl') or (build.include? 'ruby')

   def apr_bin
-    superbin or "/usr/bin"
+    superbin or Formula.factory('apr').opt_prefix
   end

   def install

from legacy-linuxbrew.

sjackman avatar sjackman commented on May 24, 2024

Dependencies that are included with Mac OS X are not listed as dependencies in Homebrew formulae. It'd be great if they were, but we'd need to sort with the mxcl/homebrew folk how to best go about that. In the mean time, I suggest installing APR with your native package manager (apt-get or yum).

Cheers,
Shaun

from legacy-linuxbrew.

paulhybryant avatar paulhybryant commented on May 24, 2024

Hi,

I ran into exactly the same issue originally reported.
I didn't see anything related to keg-only in the formular.
And the library and binary do not existing in Cellar directory.

The gist log is here https://gist.github.com/anonymous/dff6ff729d44d1a85534

Thanks,

from legacy-linuxbrew.

sjackman avatar sjackman commented on May 24, 2024

https://gist.github.com/anonymous/dff6ff729d44d1a85534#file-05-make-L128-L133

libtool: warning: relinking 'libsvn_delta-1.la'
libtool: install: (cd /tmp/subversion-JCJW8L/subversion-1.8.11/subversion/libsvn_delta; /bin/bash "/tmp/subversion-JCJW8L/subversion-1.8.11/libtool"  --tag CC --silent --mode=relink /home/yu/.linuxbrew/bin/gcc-4.9 -Os -w -pipe -march=core2 -pthread -DNDEBUG -L/home/yu/.linuxbrew/lib -Wl,-rpath,/home/yu/.linuxbrew/lib -L/home/yu/.linuxbrew/Cellar/subversion/1.8.11/libexec/serf/lib -rpath /home/yu/.linuxbrew/Cellar/subversion/1.8.11/lib -version-info 0 -Wl,--no-undefined -o libsvn_delta-1.la cancel.lo compat.lo compose_delta.lo debug_editor.lo default_editor.lo deprecated.lo depth_filter_editor.lo editor.lo path_driver.lo svndiff.lo text_delta.lo version.lo xdelta.lo ../../subversion/libsvn_subr/libsvn_subr-1.la -L/home/yu/.linuxbrew/Cellar/apr-util/1.5.4/libexec/lib -laprutil-1 -L/home/yu/.linuxbrew/Cellar/apr/1.5.1/libexec/lib -lapr-1 -lz )
/usr/bin/ld: cannot find -lsvn_delta-1
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'libsvn_ra_serf-1.la' with the above command before installing it
make: *** [install-serf-lib] Error 1

from legacy-linuxbrew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.