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

make issue #358

Closed
tigercosmos opened this issue Sep 5, 2017 · 3 comments
Closed

make issue #358

tigercosmos opened this issue Sep 5, 2017 · 3 comments

Comments

@tigercosmos
Copy link

tigercosmos  ~  Desktop  json-c  make
make  all-recursive
make[1]: Entering directory '/home/tigercosmos/Desktop/json-c'
Making all in .
make[2]: Entering directory '/home/tigercosmos/Desktop/json-c'
  CC       arraylist.lo
  CC       debug.lo
  CC       json_c_version.lo
  CC       json_object.lo
  CC       json_object_iterator.lo
  CC       json_pointer.lo
  CC       json_tokener.lo
  CC       json_util.lo
  CC       json_visit.lo
  CC       linkhash.lo
  CC       printbuf.lo
  CC       random_seed.lo
  CC       strerror_override.lo
  CCLD     libjson-c.la
ar: `u' modifier ignored since `D' is the default (see `U')
make[2]: Leaving directory '/home/tigercosmos/Desktop/json-c'
Making all in tests
make[2]: Entering directory '/home/tigercosmos/Desktop/json-c/tests'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/tigercosmos/Desktop/json-c/tests'
make[1]: Leaving directory '/home/tigercosmos/Desktop/json-c'
 tigercosmos  ~  Desktop  json-c  make install
Making install in .
make[1]: Entering directory '/home/tigercosmos/Desktop/json-c'
make[2]: Entering directory '/home/tigercosmos/Desktop/json-c'
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libjson-c.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libjson-c.so.3.0.0 /usr/local/lib/libjson-c.so.3.0.0
/usr/bin/install: cannot create regular file '/usr/local/lib/libjson-c.so.3.0.0': Permission denied
Makefile:527: recipe for target 'install-libLTLIBRARIES' failed
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory '/home/tigercosmos/Desktop/json-c'
Makefile:968: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/tigercosmos/Desktop/json-c'
Makefile:663: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
 tigercosmos  ~  Desktop  json-c   make check
Making check in .
make[1]: Entering directory '/home/tigercosmos/Desktop/json-c'
make[1]: Leaving directory '/home/tigercosmos/Desktop/json-c'
Making check in tests
make[1]: Entering directory '/home/tigercosmos/Desktop/json-c/tests'
make  test_util_file test_float test1 test2 test4 testReplaceExisting test_parse_int64 test_null test_cast test_double_serializer test_parse test_locale test_charcase test_printbuf test_set_serializer test_compare test_set_value test_visit test_json_pointer test1Formatted test2Formatted
make[2]: Entering directory '/home/tigercosmos/Desktop/json-c/tests'
  CC       test_util_file.o
  CCLD     test_util_file
  CC       test_float.o
  CCLD     test_float
  CC       test1.o
  CCLD     test1
  CC       test2.o
  CCLD     test2
  CC       test4.o
  CCLD     test4
  CC       testReplaceExisting.o
  CCLD     testReplaceExisting
  CC       test_parse_int64.o
  CCLD     test_parse_int64
  CC       test_null.o
  CCLD     test_null
  CC       test_cast.o
  CCLD     test_cast
  CC       test_double_serializer.o
  CCLD     test_double_serializer
  CC       test_parse.o
  CCLD     test_parse
  CC       test_locale.o
  CCLD     test_locale
  CC       test_charcase.o
  CCLD     test_charcase
  CC       test_printbuf.o
  CCLD     test_printbuf
  CC       test_set_serializer.o
  CCLD     test_set_serializer
  CC       test_compare.o
  CCLD     test_compare
  CC       test_set_value.o
  CCLD     test_set_value
  CC       test_visit.o
  CCLD     test_visit
  CC       test_json_pointer.o
  CCLD     test_json_pointer
  CC       test1Formatted-test1.o
  CC       test1Formatted-parse_flags.o
  CCLD     test1Formatted
  CC       test2Formatted-test2.o
  CC       test2Formatted-parse_flags.o
  CCLD     test2Formatted
make[2]: Leaving directory '/home/tigercosmos/Desktop/json-c/tests'
make  check-TESTS
make[2]: Entering directory '/home/tigercosmos/Desktop/json-c/tests'
make[3]: Entering directory '/home/tigercosmos/Desktop/json-c/tests'
PASS: test_util_file.test
PASS: test_float.test
PASS: test1.test
PASS: test2.test
PASS: test4.test
PASS: testReplaceExisting.test
PASS: test_parse_int64.test
PASS: test_null.test
PASS: test_cast.test
FAIL: test_double_serializer.test
PASS: test_parse.test
PASS: test_locale.test
PASS: test_charcase.test
PASS: test_printbuf.test
PASS: test_set_serializer.test
PASS: test_compare.test
PASS: test_set_value.test
PASS: test_visit.test
PASS: test_json_pointer.test
============================================================================
Testsuite summary for json-c 0.12.99
============================================================================
# TOTAL: 19
# PASS:  18
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to json-c@googlegroups.com
@hawicz
Copy link
Member

hawicz commented Sep 6, 2017

1- "ar" works fine for me. Without more information there's not much that can be done.
2- You can't install into /usr/local if you're not root. Not a problem. Either run the install as root, or pass --prefix to ./configure to install elsewhere.
3- Fixed.

@hawicz hawicz closed this as completed Sep 6, 2017
@tigercosmos
Copy link
Author

Thanks. It works now.

@ssy96321
Copy link

ssy96321 commented Jun 21, 2019

why not work for me ? I also met this problem.

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