xiaoxichen / leveldb

Automatically exported from code.google.com/p/leveldb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Not worwing with make install and autoreconf #249

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
PCLinuxOS 32bit

+ cd leveldb-1.15.0
+ '[' 1 -eq 1 ']'
+ make install DESTDIR=/home/gg/src/rpm/BUILDROOT/leveldb-1.15.0-1.i386
make: *** No rule to make target 'install'.  Stop.
error: Bad exit status from /home/gg/src/tmp/rpm-tmp.9GF1rG (%install)

Ok I can try use autoreconf, but not working ...

autoreconf -ivf
./configure 
make %{?_smp_mflags}

+ cd leveldb-1.15.0
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ autoreconf -ivf
autoreconf: 'configure.ac' or 'configure.in' is required
error: Bad exit status from /home/gg/src/tmp/rpm-tmp.Oa2vFm (%build)

I see OpenSuse use debian path, I will try

Original issue reported on code.google.com by swojskic...@wp.pl on 15 Aug 2014 at 10:16

GoogleCodeExporter commented 9 years ago
LevelDB doesn't use the autotools.  Just type "make" to build the library.  
You'll have to manually install the requisite headers and libraries.

Original comment by res...@gmail.com on 15 Aug 2014 at 10:23

GoogleCodeExporter commented 9 years ago
Edited:
I see more in spec OpenSuse:

install -d -m 0755 %{buildroot}%{_includedir} %{buildroot}%{_libdir}

cp -a \
    libleveldb.a   \
    libleveldb.so* \
  %{buildroot}%{_libdir}

cp -a include/leveldb   %{buildroot}%{_includedir}
find %{buildroot} -name \*.la -delete -print

Original comment by swojskic...@wp.pl on 15 Aug 2014 at 10:26

GoogleCodeExporter commented 9 years ago
Ok Thanks for help. 

Please add this to README file

" LevelDB doesn't use the autotools.  Just type "make" to build the library.  
You'll have to manually install the requisite headers and libraries. "

So this is SOLVED.

Original comment by swojskic...@wp.pl on 15 Aug 2014 at 10:29

GoogleCodeExporter commented 9 years ago
I don't have commit access (not a LevelDB maintainer or a Googler), but happy 
to help.

I've autoconfiscated HyperLevelDB and would be willing to port the build to 
LevelDB if the maintainers will take the patch.  The code is here:  
https://github.com/rescrv/HyperLevelDB

Original comment by res...@gmail.com on 15 Aug 2014 at 10:45