To use a library using src code without installing itUnit Testing C CodeWhat is “:-!!” in C code?Dereferencing pointer to incomplete type inside own libraryDivide a number by 3 without using *, /, +, -, % operatorsObfuscated C Code Contest 2006. Please explain sykes2.cmaximum number of files/directories handled by dirent structWhy with MSVC it works and with GNU come the error: array type has incomplete element type using structstruct dirent does not have de_type in header fileC Field has incomplete type, without forward declarationCompile c code using gcc without installing mingW/cygwin

Did 007 exist before James Bond?

What is the goal and toolset of philosophy?

Sending a photo of my bank account card to the future employer

Was all the fuel expended in each stage of a Saturn V launch?

Adobe Illustrator: how to reset viewing angle with Astute Graphics plugins installed?

Does the Intel 8085 CPU use real memory addresses?

Why did Steve Rogers choose this character in Endgame?

How to delete certain lists from a nested list?

Will a contempt of congress lawsuit actually reach the merits?

How could an animal "smell" carbon monoxide?

Do I need a 50/60Hz notch filter for battery powered devices?

What details should I consider before agreeing for part of my salary to be 'retained' by employer?

Foldable, multipart helicopter blades

Is there an English equivalent for "Les carottes sont cuites", while keeping the vegetable reference?

How to remove the first colon ':' from a timestamp?

Sankhara meditation

How to use function $_GET in Magento 2?

Why doesn't philosophy have higher standards for its arguments?

What does it mean to fail a saving throw by 5 or more?

Why is my calculation for added length of coax for a double cross antenna different to everyone else's?

Can you perfectly wrap a cube with this blocky shape?

If SWIFT is headquartered in Europe, why does the EU need to create a SWIFT alternative to be able to do transactions with Iran?

What powers the air required for pneumatic brakes in aircraft?

Is this artwork (used in a video game) real?



To use a library using src code without installing it


Unit Testing C CodeWhat is “:-!!” in C code?Dereferencing pointer to incomplete type inside own libraryDivide a number by 3 without using *, /, +, -, % operatorsObfuscated C Code Contest 2006. Please explain sykes2.cmaximum number of files/directories handled by dirent structWhy with MSVC it works and with GNU come the error: array type has incomplete element type using structstruct dirent does not have de_type in header fileC Field has incomplete type, without forward declarationCompile c code using gcc without installing mingW/cygwin






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am trying to use a c library libpostal .But due to system restraints i cannot install the library.
I am able to set the data_dir using DLIBPOSTAL_DATA_DIR="/my/file/path".
This leads to the below error



 abhiram@abhiram-Lenovo-G50-70:~/libpostal-master/src$ gcc -DLIBPOSTAL_DATA_DIR='"$/home/abhiram/libpostal-master/data"' -o main main.c libpostal.c file_utils.c string_utils.c json_encode.c -std=c99 -w
In file included from sparse_matrix.h:46:0,
from averaged_perceptron.h:27,
from address_parser.h:52,
from libpostal.c:10:
matrix.h:9:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
file_utils.c:42:6: error: conflicting types for ‘is_relative_path’
bool is_relative_path(struct dirent *ent) {
^
In file included from file_utils.c:1:0:
file_utils.h:59:6: note: previous declaration of ‘is_relative_path’ was here
bool is_relative_path(struct dirent *ent);
^
file_utils.c: In function ‘is_relative_path’:
file_utils.c:43:22: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
file_utils.c:43:55: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^


I can only use the gcc compiler to run c code and also run python script i am trying to use the source code instead of the library.
I cant build the file or even run configure due to not having the permission at my target location i need to create a package which i can paste at a location and run directly without any other dependencies.



I am working on my on system curently where i have all permission but i need to create a package which will be used on a system by user without any access permissions and ./configure make cannot be used due to permission denied.










share|improve this question
























  • check the makefile for what it does

    – Antti Haapala
    Mar 26 at 8:13











  • Please edit your question to show the build commands or the Makefile you use to build the program that is supposed to use libpostal. You could install libpostal to a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build of libpostal seems to use a configure script. Run configure --help to see which settings you can modify. Maybe there is an option for libpostal_data_dir or its parent directory. There might be some options --with-something or --enable-something ...

    – Bodo
    Mar 26 at 8:22











  • Thanks @AnttiHaapala it got cleared in the makefile

    – Abhiram
    Mar 26 at 8:33











  • @Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location

    – Abhiram
    Mar 26 at 8:35






  • 1





    Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell script configure, can you execute a binary program you copy to the target system?

    – Bodo
    Mar 26 at 12:15

















0















I am trying to use a c library libpostal .But due to system restraints i cannot install the library.
I am able to set the data_dir using DLIBPOSTAL_DATA_DIR="/my/file/path".
This leads to the below error



 abhiram@abhiram-Lenovo-G50-70:~/libpostal-master/src$ gcc -DLIBPOSTAL_DATA_DIR='"$/home/abhiram/libpostal-master/data"' -o main main.c libpostal.c file_utils.c string_utils.c json_encode.c -std=c99 -w
In file included from sparse_matrix.h:46:0,
from averaged_perceptron.h:27,
from address_parser.h:52,
from libpostal.c:10:
matrix.h:9:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
file_utils.c:42:6: error: conflicting types for ‘is_relative_path’
bool is_relative_path(struct dirent *ent) {
^
In file included from file_utils.c:1:0:
file_utils.h:59:6: note: previous declaration of ‘is_relative_path’ was here
bool is_relative_path(struct dirent *ent);
^
file_utils.c: In function ‘is_relative_path’:
file_utils.c:43:22: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
file_utils.c:43:55: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^


I can only use the gcc compiler to run c code and also run python script i am trying to use the source code instead of the library.
I cant build the file or even run configure due to not having the permission at my target location i need to create a package which i can paste at a location and run directly without any other dependencies.



I am working on my on system curently where i have all permission but i need to create a package which will be used on a system by user without any access permissions and ./configure make cannot be used due to permission denied.










share|improve this question
























  • check the makefile for what it does

    – Antti Haapala
    Mar 26 at 8:13











  • Please edit your question to show the build commands or the Makefile you use to build the program that is supposed to use libpostal. You could install libpostal to a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build of libpostal seems to use a configure script. Run configure --help to see which settings you can modify. Maybe there is an option for libpostal_data_dir or its parent directory. There might be some options --with-something or --enable-something ...

    – Bodo
    Mar 26 at 8:22











  • Thanks @AnttiHaapala it got cleared in the makefile

    – Abhiram
    Mar 26 at 8:33











  • @Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location

    – Abhiram
    Mar 26 at 8:35






  • 1





    Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell script configure, can you execute a binary program you copy to the target system?

    – Bodo
    Mar 26 at 12:15













0












0








0


0






I am trying to use a c library libpostal .But due to system restraints i cannot install the library.
I am able to set the data_dir using DLIBPOSTAL_DATA_DIR="/my/file/path".
This leads to the below error



 abhiram@abhiram-Lenovo-G50-70:~/libpostal-master/src$ gcc -DLIBPOSTAL_DATA_DIR='"$/home/abhiram/libpostal-master/data"' -o main main.c libpostal.c file_utils.c string_utils.c json_encode.c -std=c99 -w
In file included from sparse_matrix.h:46:0,
from averaged_perceptron.h:27,
from address_parser.h:52,
from libpostal.c:10:
matrix.h:9:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
file_utils.c:42:6: error: conflicting types for ‘is_relative_path’
bool is_relative_path(struct dirent *ent) {
^
In file included from file_utils.c:1:0:
file_utils.h:59:6: note: previous declaration of ‘is_relative_path’ was here
bool is_relative_path(struct dirent *ent);
^
file_utils.c: In function ‘is_relative_path’:
file_utils.c:43:22: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
file_utils.c:43:55: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^


I can only use the gcc compiler to run c code and also run python script i am trying to use the source code instead of the library.
I cant build the file or even run configure due to not having the permission at my target location i need to create a package which i can paste at a location and run directly without any other dependencies.



I am working on my on system curently where i have all permission but i need to create a package which will be used on a system by user without any access permissions and ./configure make cannot be used due to permission denied.










share|improve this question
















I am trying to use a c library libpostal .But due to system restraints i cannot install the library.
I am able to set the data_dir using DLIBPOSTAL_DATA_DIR="/my/file/path".
This leads to the below error



 abhiram@abhiram-Lenovo-G50-70:~/libpostal-master/src$ gcc -DLIBPOSTAL_DATA_DIR='"$/home/abhiram/libpostal-master/data"' -o main main.c libpostal.c file_utils.c string_utils.c json_encode.c -std=c99 -w
In file included from sparse_matrix.h:46:0,
from averaged_perceptron.h:27,
from address_parser.h:52,
from libpostal.c:10:
matrix.h:9:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
file_utils.c:42:6: error: conflicting types for ‘is_relative_path’
bool is_relative_path(struct dirent *ent) {
^
In file included from file_utils.c:1:0:
file_utils.h:59:6: note: previous declaration of ‘is_relative_path’ was here
bool is_relative_path(struct dirent *ent);
^
file_utils.c: In function ‘is_relative_path’:
file_utils.c:43:22: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
file_utils.c:43:55: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^


I can only use the gcc compiler to run c code and also run python script i am trying to use the source code instead of the library.
I cant build the file or even run configure due to not having the permission at my target location i need to create a package which i can paste at a location and run directly without any other dependencies.



I am working on my on system curently where i have all permission but i need to create a package which will be used on a system by user without any access permissions and ./configure make cannot be used due to permission denied.







c build






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 12:03







Abhiram

















asked Mar 26 at 8:11









AbhiramAbhiram

217 bronze badges




217 bronze badges












  • check the makefile for what it does

    – Antti Haapala
    Mar 26 at 8:13











  • Please edit your question to show the build commands or the Makefile you use to build the program that is supposed to use libpostal. You could install libpostal to a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build of libpostal seems to use a configure script. Run configure --help to see which settings you can modify. Maybe there is an option for libpostal_data_dir or its parent directory. There might be some options --with-something or --enable-something ...

    – Bodo
    Mar 26 at 8:22











  • Thanks @AnttiHaapala it got cleared in the makefile

    – Abhiram
    Mar 26 at 8:33











  • @Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location

    – Abhiram
    Mar 26 at 8:35






  • 1





    Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell script configure, can you execute a binary program you copy to the target system?

    – Bodo
    Mar 26 at 12:15

















  • check the makefile for what it does

    – Antti Haapala
    Mar 26 at 8:13











  • Please edit your question to show the build commands or the Makefile you use to build the program that is supposed to use libpostal. You could install libpostal to a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build of libpostal seems to use a configure script. Run configure --help to see which settings you can modify. Maybe there is an option for libpostal_data_dir or its parent directory. There might be some options --with-something or --enable-something ...

    – Bodo
    Mar 26 at 8:22











  • Thanks @AnttiHaapala it got cleared in the makefile

    – Abhiram
    Mar 26 at 8:33











  • @Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location

    – Abhiram
    Mar 26 at 8:35






  • 1





    Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell script configure, can you execute a binary program you copy to the target system?

    – Bodo
    Mar 26 at 12:15
















check the makefile for what it does

– Antti Haapala
Mar 26 at 8:13





check the makefile for what it does

– Antti Haapala
Mar 26 at 8:13













Please edit your question to show the build commands or the Makefile you use to build the program that is supposed to use libpostal. You could install libpostal to a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build of libpostal seems to use a configure script. Run configure --help to see which settings you can modify. Maybe there is an option for libpostal_data_dir or its parent directory. There might be some options --with-something or --enable-something ...

– Bodo
Mar 26 at 8:22





Please edit your question to show the build commands or the Makefile you use to build the program that is supposed to use libpostal. You could install libpostal to a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build of libpostal seems to use a configure script. Run configure --help to see which settings you can modify. Maybe there is an option for libpostal_data_dir or its parent directory. There might be some options --with-something or --enable-something ...

– Bodo
Mar 26 at 8:22













Thanks @AnttiHaapala it got cleared in the makefile

– Abhiram
Mar 26 at 8:33





Thanks @AnttiHaapala it got cleared in the makefile

– Abhiram
Mar 26 at 8:33













@Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location

– Abhiram
Mar 26 at 8:35





@Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location

– Abhiram
Mar 26 at 8:35




1




1





Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell script configure, can you execute a binary program you copy to the target system?

– Bodo
Mar 26 at 12:15





Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell script configure, can you execute a binary program you copy to the target system?

– Bodo
Mar 26 at 12:15












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55352452%2fto-use-a-library-using-src-code-without-installing-it%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55352452%2fto-use-a-library-using-src-code-without-installing-it%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?