Breeze0806 / go-etl

go-etl is a toolset for data extraction, transformation and loading。(go-etl是一个集数据源抽取,转化,加载的工具集,提供强大的数据同步能力)
Apache License 2.0
118 stars 38 forks source link

none: some env tidy-up #35

Closed Shane-XB-Qian closed 4 months ago

Shane-XB-Qian commented 5 months ago
  1. Makefile: local may have 'DB2_HOME' already
  2. .gitignore: adding ignores for vim and tags
Shane-XB-Qian commented 5 months ago

export GO15VENDOREXPERIMENT=1 export GO111MODULE=on export CGO_CFLAGS=-I${DB2HOME}/include export CGO_LDFLAGS=-L${DB2HOME}/lib -export LD_LIBRARY_PATH=${DB2HOME}/lib

Given that DB2_HOME exists, I'm concerned about whether we can still compile successfully with the missing "export LD_LIBRARY_PATH=${DB2HOME}/lib" in this context.

yes, if DB2_HOME there, then LD_LIBRARY_PATH should be configured already, you donnot need to rely on third party driver if so.

-- shane.xb.qian

Breeze0806 commented 5 months ago

export GO15VENDOREXPERIMENT=1 export GO111MODULE=on export CGO_CFLAGS=-I${DB2HOME}/include export CGO_LDFLAGS=-L${DB2HOME}/lib -export LD_LIBRARY_PATH=${DB2HOME}/lib Given that DB2_HOME exists, I'm concerned about whether we can still compile successfully with the missing "export LD_LIBRARY_PATH=${DB2HOME}/lib" in this context. yes, if DB2_HOME there, then LD_LIBRARY_PATH should be configured already, you donnot need to rely on third party driver if so. -- shane.xb.qian

In your environment, it may be the case that setting DB2_HOME alone is insufficient to ensure that LD_LIBRARY_PATH is configured correctly, which could potentially lead to compilation failures for others.

Breeze0806 commented 5 months ago

I'm not sure if this is correct. I need to verify it on the weekend.

Shane-XB-Qian commented 5 months ago

export GO15VENDOREXPERIMENT=1 export GO111MODULE=on export CGO_CFLAGS=-I${DB2HOME}/include export CGO_LDFLAGS=-L${DB2HOME}/lib -export LD_LIBRARY_PATH=${DB2HOME}/lib Given that DB2_HOME exists, I'm concerned about whether we can still compile successfully with the missing "export LD_LIBRARY_PATH=${DB2HOME}/lib" in this context. yes, if DB2_HOME there, then LD_LIBRARY_PATH should be configured already, you donnot need to rely on third party driver if so. -- shane.xb.qian

In your environment, it may be the case that setting DB2_HOME alone is insufficient to ensure that LD_LIBRARY_PATH is configured correctly, which could potentially lead to compilation failures for others.

no, these are the standard env of db2 itself, which compared to you self configured DB2HOME, // and actually the standard LD_LIBRARY_PATH of db2 was not only xxx/lib, but also others libs, but just maybe not relevant to this code base.

-- shane.xb.qian

Shane-XB-Qian commented 5 months ago

I'm not sure if this is correct. I need to verify it on the weekend.

sure, take your time, // btw: i guess you were working for one of xxcloud in cn? ahahaha... // i am playing db2 many years... :smile:

-- shane.xb.qian

Breeze0806 commented 5 months ago

export GO15VENDOREXPERIMENT=1 export GO111MODULE=on export CGO_CFLAGS=-I${DB2HOME}/include export CGO_LDFLAGS=-L${DB2HOME}/lib -export LD_LIBRARY_PATH=${DB2HOME}/lib Given that DB2_HOME exists, I'm concerned about whether we can still compile successfully with the missing "export LD_LIBRARY_PATH=${DB2HOME}/lib" in this context. > yes, if DB2_HOME there, then LD_LIBRARY_PATH should be configured already, you donnot need to rely on third party driver if so. > > -- shane.xb.qian In your environment, it may be the case that setting DB2_HOME alone is insufficient to ensure that LD_LIBRARY_PATH is configured correctly, which could potentially lead to compilation failures for others. no, these are the standard env of db2 itself, which compared to you self configured DB2HOME, // and actually the standard LD_LIBRARY_PATH of db2 was not only xxx/lib, but also others libs, but just maybe not relevant to this code base. -- shane.xb.qian

Ok, I'm not very proficient in DB2. Currently, I'm referencing the configuration at https://github.com/ibmdb/go_ibm_db/tree/v0.4.4. When you mentioned the standard environmental configuration for DB2, do you mean the configuration on the DB2 database server or on the DB2 client server?

Shane-XB-Qian commented 5 months ago

Ok, I'm not very proficient in DB2. Currently, I'm referencing the configuration at https://github.com/ibmdb/go_ibm_db/tree/v0.4.4. When you mentioned the standard environmental configuration for DB2, do you mean the configuration on the DB2 database server or on the DB2 client server?

nevermind this, the 'ifdef' of this change was just a safeguard, and make the dev env of db2 be easy // i saw your doc said lots additions about db2, but actually it can be easy, // anyway, your original DB2HOME was there still, it can continue to work.

-- shane.xb.qian

Breeze0806 commented 5 months ago

I'm not sure if this is correct. I need to verify it on the weekend. sure, take your time, // btw: i guess you were working for one of xxcloud in cn? ahahaha... // i am playing db2 many years... 😄 -- shane.xb.qian

Are you an experienced user of DB2? That's excellent. I might learn a lot from you. I checked out your profile and found out that you're also from China.

Breeze0806 commented 5 months ago

Ok, I'm not very proficient in DB2. Currently, I'm referencing the configuration at https://github.com/ibmdb/go_ibm_db/tree/v0.4.4. When you mentioned the standard environmental configuration for DB2, do you mean the configuration on the DB2 database server or on the DB2 client server? nevermind this, the 'ifdef' of this change was just a safeguard, and make the dev env of db2 be easy // i saw your doc said lots additions about db2, but actually it can be easy, // anyway, your original DB2HOME was there still, it can continue to work. -- shane.xb.qian

Oh, I will try it this weekend.

Shane-XB-Qian commented 5 months ago

sure, take your time, // btw: i guess you were working for one of xxcloud in cn? ahahaha... // i am playing db2 many years... 😄

Are you an experienced user of DB2? That's excellent. I might learn a lot from you. I checked out your profile and found out that you're also from China.

um.. you can hire me if you like maybe even better... :sweet_smile: ahahaha... // nevermind, have fun~

-- shane.xb.qian