lpereira / hardinfo

System profiler and benchmark tool for Linux systems
http://hardinfo.org
GNU General Public License v2.0
772 stars 130 forks source link

HARDINFO_NOSYNC: No such build option #620

Open birdie-github opened 3 years ago

birdie-github commented 3 years ago

Please update README.md

ezequielsousabr commented 3 years ago

I think you have the same problem as I am. To fix this, just do the following...

When cloning the repository or downloading the zip file, unzip and enter the folders. You will see that there is another folder called hardinfo. Enter this folder and create the build folder. Inside the build folder, you need to run the command according to its structure which can be like this.

cmake ../..

Afterwards, this will generate the necessary files.

Now, do the make.

make ../..

Ready! That solved my problem and generated the install binary.

ezequielsousabr commented 3 years ago

after installation, you may encounter this error. I believe it is directive. I'll solve it and then I'll comment.

(hardinfo:34483): ERROR : 02:55:05.074: Failed to find runtime data. • Is HardInfo correctly installed? • See if share/hardinfo and /usr/local/lib64/hardinfo exists and you have read permission. [1] 34483 trace trap (core dumped) ./hardinfo --list-modules

ezequielsousabr commented 3 years ago

This error occurs as soon as you run the hardinfo script, which is practically the binary file.

lpereira commented 3 years ago

How did you install hardinfo to get this error?

On Fri, Oct 29, 2021, 22:56 Ezequiel Sousa @.***> wrote:

after installation, you may encounter this error. I believe it is directive. I'll solve it and then I'll comment.

(hardinfo:34483): ERROR : 02:55:05.074: Failed to find runtime data. • Is HardInfo correctly installed? • See if share/hardinfo and /usr/local/lib64/hardinfo exists and you have read permission. [1] 34483 trace trap (core dumped) ./hardinfo --list-modules

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lpereira/hardinfo/issues/620#issuecomment-955154722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVGNEFETRLERRFQZPSJ3UJOCJ5ANCNFSM5GB4LKMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ezequielsousabr commented 3 years ago

Como você instalou o hardinfo para obter esse erro? On Fri, Oct 29, 2021, 22:56 Ezequiel Sousa @.*> wrote: after installation, you may encounter this error. I believe it is directive. I'll solve it and then I'll comment. (hardinfo:34483): ERROR **: 02:55:05.074: Failed to find runtime data. • Is HardInfo correctly installed? • See if share/hardinfo and /usr/local/lib64/hardinfo exists and you have read permission. [1] 34483 trace trap (core dumped) ./hardinfo --list-modules — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#620 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVGNEFETRLERRFQZPSJ3UJOCJ5ANCNFSM5GB4LKMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I practically followed the document. Download the repository to my local folder and then I installed the necessary dependencies. Soon after, I went to the hardinfo folder and created the build folder to compile the code. Commands were;

hardinfo cd
mkdir build
cd build
cmake ../..
make ../..

As the files for compilation were in a repository's home folder, it was necessary to inform the relative path.

After performing the compilation, where everything went OK, I ran the command (script) hardinfo in the build folder that compiled the program.

if you type

./hardinfo --help

the output happens normal, showing help. But when running the script to show the hardware information, this error occurs.

** (hardinfo:45560): ERROR **: 12:05:13.024: Failed to find runtime data.

• Is HardInfo correctly installed?
• See if share/hardinfo and /usr/local/lib64/hardinfo exists and you have read permission.
[1] 45560 trace trap (core dumped) ./hardinfo
birdie-github commented 3 years ago

I think you have the same problem as I am. To fix this, just do the following...

I've downloaded the latest git snapshot.

grep HARDINFO_NOSYNC -R .
./README.md: * `HARDINFO_NOSYNC`: Disables network synchronization.
./README.md:`   build $ cmake -DHARDINFO_NOSYNC=1`

The option is nowhere to be found except for README.

lpereira commented 3 years ago

HardInfo has to be installed with "make install" (maybe with sudo, but definitely as root.)

Also, while building, "make" shouldn't be invoked with those arguments. Just "make" is sufficient (maybe "make -jN", where N is the number of CPUs in the computer.)

On Sat, Oct 30, 2021, 08:06 Ezequiel Sousa @.***> wrote:

Como você instalou o hardinfo para obter esse erro? … <#m-8270441904731719943> On Fri, Oct 29, 2021, 22:56 Ezequiel Sousa @.*> wrote: after installation, you may encounter this error. I believe it is directive. I'll solve it and then I'll comment. (hardinfo:34483): ERROR **: 02:55:05.074: Failed to find runtime data. • Is HardInfo correctly installed? • See if share/hardinfo and /usr/local/lib64/hardinfo exists and you have read permission. [1] 34483 trace trap (core dumped) ./hardinfo --list-modules — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#620 (comment) https://github.com/lpereira/hardinfo/issues/620#issuecomment-955154722>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVGNEFETRLERRFQZPSJ3UJOCJ5ANCNFSM5GB4LKMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

I practically followed the document. Download the repository to my local folder and then I installed the necessary dependencies. Soon after, I went to the hardinfo folder and created the build folder to compile the code. Commands were;

hardinfo cd

mkdir build

cd build

cmake ../..

make ../..

As the files for compilation were in a repository's home folder, it was necessary to inform the relative path.

After performing the compilation, where everything went OK, I ran the command (script) hardinfo in the build folder that compiled the program.

if you type

./hardinfo --help

the output happens normal, showing help. But when running the script to show the hardware information, this error occurs.

(hardinfo:45560): ERROR : 12:05:13.024: Failed to find runtime data.

• Is HardInfo correctly installed?

• See if share/hardinfo and /usr/local/lib64/hardinfo exists and you have read permission.

[1] 45560 trace trap (core dumped) ./hardinfo

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lpereira/hardinfo/issues/620#issuecomment-955289485, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVGKHJKP6GP4OUZYF2JTUJQCYDANCNFSM5GB4LKMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

lpereira commented 3 years ago

About the NOSYNC option: it was removed and the RRADME wasn't updated. (The whole README has to be rewritten anyway. Thanks for the reminder.)

On Sat, Oct 30, 2021, 08:09 Artem S. Tashkinov @.***> wrote:

I think you have the same problem as I am. To fix this, just do the following...

I've downloaded the latest git snapshot.

grep HARDINFO_NOSYNC -R . ./README.md: * HARDINFO_NOSYNC: Disables network synchronization. ./README.md:build $ cmake -DHARDINFO_NOSYNC=1

The option is nowhere to be found except for README.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lpereira/hardinfo/issues/620#issuecomment-955295306, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVGLCHAWTLFHJMAMT3GDUJQDEDANCNFSM5GB4LKMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.